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

Fix for Checkbox and Radio hovered, disabled states #292

Merged
merged 2 commits into from
Dec 7, 2018

Conversation

montezume
Copy link
Contributor

Summary

We were using SVG ids to apply css styling to some of our svgs in the components checkbox and radio. However, at some point in the last period of time since we last checked to see if this worked, SVGO moved to making SVG id's unique, by prepending them with the file name.

We give id="borderAndContent", and SVGO outputs id="radio-option-default_react_svg__borderAndContent".

Approach

Use regex to target the id. ref

Add VRT tests for the two components.

screen shot 2018-12-07 at 2 31 04 pm

@montezume montezume added 🐛 Type: Bug Something isn't working Semver: FIX labels Dec 7, 2018
@montezume montezume self-assigned this Dec 7, 2018
@@ -11,11 +11,11 @@
align-items: center;
}

.checkboxWrapper svg [id='borderAndContent'] > [id='border'] {
.checkboxWrapper svg [id$='borderAndContent'] > [id$='border'] {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's the fix

Copy link
Contributor

@dferber90 dferber90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ I want pizza

@montezume montezume merged commit 4b430aa into master Dec 7, 2018
@montezume montezume deleted the ml-fix-checkboxes branch December 7, 2018 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants