Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ToggleButton] Update styles for Material v2 #14278

Merged
merged 6 commits into from
Feb 11, 2019
Merged

[ToggleButton] Update styles for Material v2 #14278

merged 6 commits into from
Feb 11, 2019

Conversation

mbrookes
Copy link
Member

@mbrookes mbrookes commented Jan 22, 2019

image

@mbrookes mbrookes added breaking change component: toggle button This is the name of the generic UI component, not the React module! labels Jan 22, 2019
@oliviertassinari

This comment has been minimized.

@mbrookes mbrookes changed the base branch from master to next February 8, 2019 22:17
@mbrookes
Copy link
Member Author

mbrookes commented Feb 8, 2019

This should not have been so difficult, but got there in the end! 😅

The buttons required semi-transparent borders, so that the borders take on the background color if customized. However since the borders need to overlap, they are additive, creating varying shades of border, according to the state of adjacent buttons. JSS nested and sibling selectors to the rescue!

@joshwooding

This comment has been minimized.

@mbrookes

This comment has been minimized.

@oliviertassinari
Copy link
Member

In the future, I think that it would be great to introduce a button group component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: toggle button This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants