This repository has been archived by the owner. It is now read-only.
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd 'data-className' #11376
Closed
Add 'data-className' #11376
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Add
data-classNameor like that to components to stop styles specified withclassNamefrom overriding normalized styles.Example
Consider a case like this:
That could cause a visual regression.
It should be ultimately converted with
custom, which should beThat would be possible like this:
In this way, you would be able to make components which accept custom styles only when
this.props.customis set.Steps to Reproduce
Actual result:
Expected result:
Reproduces how often: [What percentage of the time does it reproduce?]
Brave Version
about:brave info:
Reproducible on current live release:
Additional Information