Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Button states: outline button should have dark background on hover #96

Closed
madhusudhand opened this issue Aug 23, 2022 · 9 comments
Closed

Comments

@madhusudhand
Copy link
Member

madhusudhand commented Aug 23, 2022

Following button states should match with figma.

Current:

Hover: (outline button background)
image

Focus: (dashed outline for both buttons)
image

Expected:
image

@madhusudhand madhusudhand changed the title Button states: match the figma Button states: outline button should have dark background on hover Aug 23, 2022
@carolinan
Copy link
Collaborator

There is no way to target the outline style variation using theme.json.

@mikachan
Copy link
Member

There is no way to target the outline style variation using theme.json.

Yeah... we'd need to use CSS. I may create a label for these kinds of issues, so we can decide on how much CSS we want to add (if any).

Is there a Gutenberg issue for styling outline buttons via theme.json? Maybe this one? WordPress/gutenberg#42794

@MaggieCabrera
Copy link
Collaborator

I made a PR for this: WordPress/gutenberg#43526

@mikachan
Copy link
Member

Thanks @MaggieCabrera! It's actually the outline button variation we need to style with the above, but allowing CSS outlines to be controlled via theme.json is a great addition for style variation submissions.

@MaggieCabrera
Copy link
Collaborator

Thanks @MaggieCabrera! It's actually the outline button variation we need to style with the above, but allowing CSS outlines to be controlled via theme.json is a great addition for style variation submissions.

ugh, goes to show what happens when you read GH issues too early in the morning! I still think my PR is a good one to have. The outline variations one is a much harder one and I don't think we can make that one on time given the work that needs to be done to block styles variations, sadly

@carolinan
Copy link
Collaborator

carolinan commented Aug 24, 2022

Once there is a UI for borders for buttons, I think the outline style should be removed from core, because the settings will make the block more flexible.

@MaggieCabrera
Copy link
Collaborator

Once there is a UI for borders for buttons, I think the outline style should be removed form core, because the settings will make the block more flexible.

That will work for this specific variation but not for others (think of maybe the dotted separator?) so there's value on being able to control these via theme.json. I'm also keen on having the ability to select a variation as default that is not the current default one.

@carolinan
Copy link
Collaborator

Yeah, selecting a different default used to be possible with the ui, but it was removed.

@mikachan
Copy link
Member

Closing this, as unfortunately, it's not currently possible to style outline buttons using theme.json.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants