Open simurai opened 1 week ago
When adding a className to a Hero.Label, it removes the bottom margin.
className
Hero.Label
className="someClass"
I think the Hero-module--Hero-label--C\+rTh class (that adds the bottom margin) gets removed from the DOM once a custom class is added?
Hero-module--Hero-label--C\+rTh
The bottom margin should stay.
Chrome
Mac
Good spot, thanks @simurai.
I've got a PR here which resolves the issue
https://github.com/primer/brand/pull/760
Describe the bug
When adding a
className
to aHero.Label
, it removes the bottom margin.Reproduction steps
className="someClass"
to theHero.Label
of the first example.I think the
Hero-module--Hero-label--C\+rTh
class (that adds the bottom margin) gets removed from the DOM once a custom class is added?Expected behavior
The bottom margin should stay.
Screenshots
Browsers
Chrome
OS
Mac