You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there's another class on the div that contains the brand image that is also targeting it:
.css-1nwijr1>*>* {
max-width:100%;
}
On first load, the first class with max-width: 150px has precedence. When Storybook hot reloads (from a theming addon, for example), the div class takes precedence and the brand image gets noticeably larger because it's no longer constrained by the max-width: 150px.
<img> precedence
<div> precedence
This happens on my local machine and on Chromatic.
Describe the bug
The brand image has two different classes acting upon it, and sometimes one class takes precedence, and sometimes the other one does.
This is the class directly on the
<img>
tag:But there's another class on the div that contains the brand image that is also targeting it:
On first load, the first class with
max-width: 150px
has precedence. When Storybook hot reloads (from a theming addon, for example), the div class takes precedence and the brand image gets noticeably larger because it's no longer constrained by themax-width: 150px
.<img>
precedence<div>
precedenceThis happens on my local machine and on Chromatic.
Reproduction link
https://66e3cef65bf40b8afc34806f-jvdpuqyolz.chromatic.com/?path=/story/components-button--default
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: