-
Notifications
You must be signed in to change notification settings - Fork 12
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] Restrict tag
class scope
#702
Conversation
🔎 Download the Backstop report for this pull request (link valid for 90 days): |
This fixes a CSS clash with the 'element.css', as seen for instance on the screenshot in the pull request epfl-si/elements#702
If the storybook code is like this:
and we add |
Yes, It doesn't correct the problem in storybook. So I commit directly a fix in the epfl-element-react project: |
This fixes a CSS clash with the 'element.css', as seen for instance on the screenshot in the pull request epfl-si/elements#702
That is correct, but I still think the PR has merit, as we shouldn't spray all the CSS styles over any and all things that have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add div
and p
.
Tag input
item: (data, escape) => `<div class="tag tag-primary">${escape(data.text)}</div>`, |
Graph Search
<p class="tag tag-sm bg-light border-light mb-2"><strong>Concepts</strong></p> |
Done. Apologies for not spotting that in Backstop. |
This fixes a CSS clash since
class="tag"
is not exactly rare, as seen for instance on the screenshot below (for Storybook).