@@ -76,9 +76,7 @@ export function AccessibilityDemo() {
7676 key = { tab . id }
7777 onClick = { ( ) => setActiveTab ( tab . id ) }
7878 className = { `px-3 py-1.5 rounded-lg text-sm font-medium transition-colors cursor-pointer ${
79- activeTab === tab . id
80- ? 'bg-surface-900 dark:bg-surface-0 text-surface-0 dark:text-surface-900'
81- : 'text-muted-color hover:text-color hover:bg-surface-200 dark:hover:bg-surface-800'
79+ activeTab === tab . id ? 'bg-surface-900 dark:bg-surface-0 text-surface-0 dark:text-surface-900' : 'text-muted-color hover:text-color hover:bg-surface-200 dark:hover:bg-surface-800'
8280 } `}
8381 >
8482 { tab . label }
@@ -135,9 +133,7 @@ function SelectMockup({ state, dir = 'ltr', cities: items = cities, placeholder
135133 aria-activedescendant = { state . open ? focusedId : undefined }
136134 className = "flex items-center justify-between px-3 py-2 rounded-lg border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-950 text-sm"
137135 >
138- < span className = { state . selectedIndex >= 0 ? 'text-color' : 'text-muted-color' } >
139- { state . selectedIndex >= 0 ? items [ state . selectedIndex ] : placeholder }
140- </ span >
136+ < span className = { state . selectedIndex >= 0 ? 'text-color' : 'text-muted-color' } > { state . selectedIndex >= 0 ? items [ state . selectedIndex ] : placeholder } </ span >
141137 < svg className = { `w-4 h-4 text-muted-color transition-transform duration-300 ${ state . open ? 'rotate-180' : '' } ` } viewBox = "0 0 20 20" fill = "currentColor" >
142138 < path fillRule = "evenodd" d = { chevronPath } clipRule = "evenodd" />
143139 </ svg >
@@ -155,13 +151,7 @@ function SelectMockup({ state, dir = 'ltr', cities: items = cities, placeholder
155151 aria-posinset = { index + 1 }
156152 aria-setsize = { items . length }
157153 data-focused = { state . focusedIndex === index ? '' : undefined }
158- className = { `px-3 py-1.5 text-sm transition-colors duration-200 ${
159- state . focusedIndex === index
160- ? 'bg-primary/10 text-primary font-medium'
161- : state . selectedIndex === index
162- ? 'bg-primary/5 text-primary'
163- : 'text-color'
164- } `}
154+ className = { `px-3 py-1.5 text-sm transition-colors duration-200 ${ state . focusedIndex === index ? 'bg-primary text-primary-contrast font-medium' : state . selectedIndex === index ? 'bg-primary/5 text-primary' : 'text-color' } ` }
165155 >
166156 { city }
167157 </ li >
0 commit comments