@@ -66,7 +66,7 @@ const fontPx = (size: number) => `calc(${size}px * ${FONT_SCALE})`
6666export function createA11yPanelStyles ( theme : 'light' | 'dark' ) {
6767 const t = ( light : string , dark : string ) => ( theme === 'light' ? light : dark )
6868
69- const bg = t ( '#ffffff ' , '#191c24' )
69+ const bg = t ( '#f9fafb; ' , '#191c24' )
7070 const fg = t ( '#1e293b' , '#e2e8f0' )
7171 const border = t ( '#e2e8f0' , '#292e3d' )
7272 const muted = t ( '#64748b' , '#94a3b8' )
@@ -163,15 +163,6 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
163163 gap : 6px ;
164164 align-items : center;
165165 ` ,
166- compactButton : css `
167- padding : 4px 12px ;
168- font-size : 12px ;
169- line-height : 1.2 ;
170- border-radius : 4px ;
171- border : 1px solid currentColor;
172- background : transparent;
173- opacity : 0.7 ;
174- ` ,
175166 toggleOverlay : css `
176167 padding : 8px 12px ;
177168 color : ${ fg } ;
@@ -199,16 +190,6 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
199190 statusSpacer : css `
200191 flex : 1 ;
201192 ` ,
202- pill : ( active : boolean ) => css `
203- padding : 4px 10px ;
204- background : ${ active ? '#10b981' : 'transparent' } ;
205- color : ${ active ? '#fff' : '#0ea5e9' } ;
206- border : 1px solid ${ active ? '#10b981' : border } ;
207- border-radius : 999px ;
208- cursor : pointer;
209- font-size : ${ fontPx ( 11 ) } ;
210- font-weight : 600 ;
211- ` ,
212193 smallLinkButton : css `
213194 padding : 4px 10px ;
214195 background : transparent;
@@ -276,11 +257,16 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
276257 summaryButton : css `
277258 padding : 12px ;
278259 color : ${ fg } ;
260+ background : ${ bg } ;
279261 border-radius : 8px ;
280262 border : 1px solid ${ border } ;
281263 text-align : left;
282264 cursor : pointer;
283265 box-shadow : none;
266+
267+ & : hover {
268+ background : ${ t ( '#f0f2f5' , '#111318' ) } ;
269+ }
284270 ` ,
285271 summaryButtonActive : ( impact : SeverityThreshold ) => css `
286272 box-shadow : 0 0 0 2px ${ SEVERITY_COLORS [ impact ] } ;
@@ -368,8 +354,9 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
368354 flex-shrink : 0 ;
369355 ` ,
370356 helpLink : css `
371- font-size : ${ fontPx ( 11 ) } ;
357+ font-size : ${ fontPx ( 12 ) } ;
372358 color : # 0ea5e9 ;
359+ padding : 0 12px ;
373360 font-weight : 600 ;
374361 text-decoration : underline;
375362 text-underline-offset : 2px ;
@@ -440,8 +427,8 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
440427 ` ,
441428 doneButton : css `
442429 padding : 6px 12px ;
443- background : # 0ea5e9 ;
444- color : # fff ;
430+ background : ${ bg } ;
431+ color : ${ bg } ;
445432 border : none;
446433 border-radius : 4px ;
447434 cursor : pointer;
@@ -505,16 +492,6 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
505492 display : flex;
506493 gap : 6px ;
507494 ` ,
508- smallAction : ( variant : 'success' | 'danger' ) => css `
509- padding : 4px 8px ;
510- background : ${ variant === 'success' ? '#10b981' : '#ef4444' } ;
511- color : # fff ;
512- border : none;
513- border-radius : 4px ;
514- cursor : pointer;
515- font-size : ${ fontPx ( 10 ) } ;
516- font-weight : 500 ;
517- ` ,
518495 filtersRow : css `
519496 display : flex;
520497 gap : 8px ;
@@ -546,6 +523,10 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
546523 cursor : pointer;
547524 opacity : 1 ;
548525 background : transparent;
526+
527+ & : hover {
528+ background : ${ t ( '#f0f2f5' , '#111318' ) } ;
529+ }
549530 ` ,
550531 ruleRowDisabled : css `
551532 opacity : 0.6 ;
@@ -554,7 +535,7 @@ export function createA11yPanelStyles(theme: 'light' | 'dark') {
554535 border-bottom : 1px solid ${ border } ;
555536 ` ,
556537 ruleCheckbox : css `
557- margin-top : 4 px ;
538+ margin-top : 2 px ;
558539 flex-shrink : 0 ;
559540 ` ,
560541 ruleInfo : css `
0 commit comments