Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tristen committed Jan 23, 2024
1 parent 38b80c9 commit 36bd73f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/components/select/__snapshots__/select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports[`Select all options renders 1`] = `
<div
aria-labelledby="radix-27"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-highlighted=""
data-radix-collection-item=""
data-state="unchecked"
Expand All @@ -79,7 +79,7 @@ exports[`Select all options renders 1`] = `
<div
aria-labelledby="radix-28"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand All @@ -90,7 +90,7 @@ exports[`Select all options renders 1`] = `
<div
aria-labelledby="radix-29"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand All @@ -101,7 +101,7 @@ exports[`Select all options renders 1`] = `
<div
aria-labelledby="radix-30"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand Down Expand Up @@ -190,7 +190,7 @@ exports[`Select basic renders 1`] = `
<div
aria-labelledby="radix-5"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-highlighted=""
data-radix-collection-item=""
data-state="unchecked"
Expand All @@ -202,7 +202,7 @@ exports[`Select basic renders 1`] = `
<div
aria-labelledby="radix-6"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand All @@ -213,7 +213,7 @@ exports[`Select basic renders 1`] = `
<div
aria-labelledby="radix-7"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand All @@ -224,7 +224,7 @@ exports[`Select basic renders 1`] = `
<div
aria-labelledby="radix-8"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand Down Expand Up @@ -330,7 +330,7 @@ exports[`Select dark renders 1`] = `
<div
aria-labelledby="radix-18"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-highlighted=""
data-radix-collection-item=""
data-state="unchecked"
Expand All @@ -342,7 +342,7 @@ exports[`Select dark renders 1`] = `
<div
aria-labelledby="radix-19"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand All @@ -353,7 +353,7 @@ exports[`Select dark renders 1`] = `
<div
aria-labelledby="radix-20"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand All @@ -364,7 +364,7 @@ exports[`Select dark renders 1`] = `
<div
aria-labelledby="radix-21"
aria-selected="false"
class="select-item transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
class="transition color-gray-dark w-full block bg-gray-light-on-active block py6 txt-break-word-soft bg-darken5-on-hover color-blue-on-hover cursor-pointer round px6"
data-radix-collection-item=""
data-state="unchecked"
role="option"
Expand Down
2 changes: 1 addition & 1 deletion src/components/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function Select({

const renderOptions = ({ label, value, active, disabled, options }: Option) => {

const itemClasses = classnames(`select-item ${themeSelectItem}`, {
const itemClasses = classnames(themeSelectItem, {
'is-active': active
})

Expand Down

0 comments on commit 36bd73f

Please sign in to comment.