Skip to content

Commit

Permalink
asking for feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese committed Aug 16, 2024
1 parent 4bc7efe commit 79687d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/views/sul-people/sul-people-table-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => {
const existingIndex = newState.indexOf(type)
if (existingIndex >= 0) {
newState.splice(existingIndex, 1)
console.log("newState splice line")
} else {
newState.push(type)
console.log("newState push (type) line")
}
return newState
})
Expand Down Expand Up @@ -123,7 +125,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => {
checked={!typeFilter.length}
onChange={() => updateTypeFilter()}
/>
<span className="block whitespace-nowrap rounded-l-full border border-r-0 border-black-80 p-4 px-16 text-14 leading-[30px] no-underline group-hover:border-cardinal-red-dark group-hover:text-cardinal-red-dark group-hover:underline peer-checked:bg-[#979694] peer-checked:bg-opacity-20 peer-focus:border-2 peer-focus:border-black-80 peer-focus:bg-[#979694] peer-focus:bg-opacity-10 md:text-16">
<span className="block whitespace-nowrap rounded-l-full border border-r-0 border-black-80 p-4 px-16 text-14 leading-[30px] no-underline group-hover:border-cardinal-red-dark group-hover:text-cardinal-red-dark group-hover:underline peer-focus:border-2 peer-focus:border-black-80 peer-focus:bg-[#979694] peer-focus:bg-opacity-10 md:text-16">
All
</span>
</label>
Expand All @@ -134,7 +136,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => {
checked={typeFilter.includes("subject specialist")}
onChange={() => updateTypeFilter("subject specialist")}
/>
<span className="block items-center whitespace-nowrap border border-r-0 border-black-80 p-4 px-16 text-14 leading-[30px] no-underline group-hover:border-cardinal-red-dark group-hover:text-cardinal-red-dark group-hover:underline peer-checked:bg-[#979694] peer-checked:bg-opacity-20 peer-focus:border-2 peer-focus:border-black-80 peer-focus:bg-[#979694] peer-focus:bg-opacity-10 md:rounded-l-none md:text-16">
<span className="block items-center whitespace-nowrap border border-r-0 border-black-80 p-4 px-16 text-14 leading-[30px] no-underline group-hover:border-cardinal-red-dark group-hover:text-cardinal-red-dark group-hover:underline peer-focus:border-2 peer-focus:border-black-80 peer-focus:bg-[#979694] peer-focus:bg-opacity-10 md:rounded-l-none md:text-16">
Subject specialists
</span>
</label>
Expand All @@ -145,7 +147,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => {
checked={typeFilter.includes("technical specialist")}
onChange={() => updateTypeFilter("technical specialist")}
/>
<span className="block items-center whitespace-nowrap rounded-r-full border border-black-80 p-4 px-16 text-14 leading-[30px] no-underline group-hover:border-cardinal-red-dark group-hover:text-cardinal-red-dark group-hover:underline peer-checked:bg-[#979694] peer-checked:bg-opacity-20 peer-focus:border-2 peer-focus:border-black-80 peer-focus:bg-[#979694] peer-focus:bg-opacity-10 md:text-16">
<span className="block items-center whitespace-nowrap rounded-r-full border border-black-80 p-4 px-16 text-14 leading-[30px] no-underline group-hover:border-cardinal-red-dark group-hover:text-cardinal-red-dark group-hover:underline peer-focus:border-2 peer-focus:border-black-80 peer-focus:bg-[#979694] peer-focus:bg-opacity-10 md:text-16">
Technical specialists
</span>
</label>
Expand Down

0 comments on commit 79687d8

Please sign in to comment.