You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put together a test page that uses Primer view components to render several variations on the Primer::ButtonComponent, using all three supported tags (button, a, and summary) as well as both disabled and enabled states. For button tags, I used the disabled attribute and for a/summary tags, I used aria-disabled.
From what I can tell, there are five issues:
Disabled, default scheme buttons (for all tags) show a slight shadow as if the button is pushable. This shadow is absent from outline and danger scheme buttons.
Disabled, outline scheme buttons (for button and a tags) change the icon color on hover. The summary tag button does not. I'm not sure what the intended behavior here is but there's at least a consistency problem.
Disabled, danger scheme buttons (for button and a tags) change the icon color on hover. The summary tag button does not. There's the same consistency problem described in number 3 and the additional problem of the icon color changing to white on hover which has sort of a disappearing effect.
Disabled, primary scheme buttons (for button and a tags) show a slight shadow as if the button is pushable. This shadow is (correctly) absent from outline and danger scheme buttons.
Disabled, primary scheme buttons (for all tags) show a gray icon, which looks out of place. Should the icon preserve the white styling of the button text?
Numbers 2, 3, and 5 are also problematic in dark and dimmed themes. Demo included for the dimmed theme.
Demos
Light theme, hovers
Light theme, clicks
Dimmed theme, hovers and clicks
Context
OS: macOS Catalina
Browser: Safari
Version: 14.0.3 15610.4.3.1.7, 15610
I also experience these same behaviors on Firefox 87.0 and Chrome 89.0.4389.114.
The text was updated successfully, but these errors were encountered:
The pressed (:active) state of btn-primary seems to have a gray border in "Dark high contrast":
Also @Juliusschaeper noticed that the pressed (:active) state of btn-primary has a gray background, but only in Safari. I guess Chrome also uses the :focus style so it is still green? 🤔
I put together a test page that uses Primer view components to render several variations on the
Primer::ButtonComponent
, using all three supported tags (button
,a
, andsummary
) as well as both disabled and enabled states. Forbutton
tags, I used thedisabled
attribute and fora
/summary
tags, I usedaria-disabled
.From what I can tell, there are five issues:
default
scheme buttons (for all tags) show a slight shadow as if the button is pushable. This shadow is absent fromoutline
anddanger
scheme buttons.outline
scheme buttons (forbutton
anda
tags) change the icon color on hover. Thesummary
tag button does not. I'm not sure what the intended behavior here is but there's at least a consistency problem.danger
scheme buttons (forbutton
anda
tags) change the icon color on hover. Thesummary
tag button does not. There's the same consistency problem described in number 3 and the additional problem of the icon color changing to white on hover which has sort of a disappearing effect.primary
scheme buttons (forbutton
anda
tags) show a slight shadow as if the button is pushable. This shadow is (correctly) absent fromoutline
anddanger
scheme buttons.primary
scheme buttons (for all tags) show a gray icon, which looks out of place. Should the icon preserve the white styling of the button text?Numbers 2, 3, and 5 are also problematic in dark and dimmed themes. Demo included for the dimmed theme.
Demos
Light theme, hovers
Light theme, clicks
Dimmed theme, hovers and clicks
Context
15610.4.3.1.7, 15610
I also experience these same behaviors on Firefox 87.0 and Chrome 89.0.4389.114.
The text was updated successfully, but these errors were encountered: