-
-
Notifications
You must be signed in to change notification settings - Fork 996
fix: remove extra variable #525
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
Conversation
|
✔️ Deploy Preview for asyncapi-website ready! 🔨 Explore the source changes: 6cccd0b 🔍 Inspect the deploy log: https://app.netlify.com/sites/asyncapi-website/deploys/61d32074cc22870007d2f9c4 😎 Browse the preview: https://deploy-preview-525--asyncapi-website.netlify.app |
magicmatatjahu
left a comment
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.
You're fast 😅 LGTM but I see one problem. We should add commonClassNames to the end of the normalClassNames, because at the end we have mx-auto class and if someone will want to override margins (override that class) will have problem, so code should look like:
const wideClassNames = `max-w-screen-xl`
const regularClassNames = `max-w-4xl`
const normalClassNames = `${wide ? wideClassNames : regularClassNames} mx-auto ${commonClassNames}`
So it's not important in which order we have classes but how tailwind applies them to the stylesheet. Tbh I don't about that, I always thought that from priority is fro left to right 😅 Anyway I will accept it. |
@magicmatatjahu Yeah I know with traditional CSS that you can add class names in whatever order (kind of like addition) and they would be applied based on cascading order in the stylesheet, which I guess with tailwind if we are loading the default theme |
|
/rtm |
|
If something is changed in the |
|
@magicmatatjahu perhaps something we can test against! Also, sorry for not rebasing with master. I asked @derberg what I should do about it and brought to his attention that I actually cannot see the Must be a problem with github config, but are you able to help me merge this one as well? Thanks! |
|
@mcturco this one is not blocked, as @magicmatatjahu also updated it with latest master so we don't know if you could see something or not. So you can add comment to ready merge |
|
As @derberg wrote :) |
|
Sorry @derberg! Haha we wrote at the same time 😆 |
|
/rtm |
|
@all-contributors please add @mcturco for code, design , ideas, review |
|
I've put up a pull request to add @mcturco! 🎉 |
Co-authored-by: asyncapi-bot <[email protected]>

Removes extra variable in
Containercomponent where classes are rendering twice.Related issue(s)
Resolves #521