Skip to content
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(Button): 🐛 Passed className should now override correctly #1442

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

mimarz
Copy link
Collaborator

@mimarz mimarz commented Jan 30, 2024

fixes #1448

was not able to get to work in Storybook, probably due to it having its own postcss transpiler config.

Copy link
Contributor

github-actions bot commented Jan 30, 2024

Preview deployments for this pull request:

📖 Storybook 31. Jan 2024 - 15:07 (Norwegian time)

See all deployments at https://dev.designsystemet.no

@mimarz mimarz changed the title fix(Button): 🐛 Fixed passed className working fix(Button): 🐛 Passed className should now override correctly Jan 31, 2024
@mimarz mimarz marked this pull request as ready for review January 31, 2024 14:21
@mimarz mimarz requested a review from Barsnes as a code owner January 31, 2024 14:21
@@ -25,7 +25,7 @@
overflow: visible;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, its a bit weird indeed. I can't think of why we should have it anymore. Should anyways be a separate PR if we do figure out to change this :)

Copy link
Member

@Barsnes Barsnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to be good, some things with icons are stil being overridden, but users should be able to pass a className and add custom styles now 😄

@mimarz mimarz merged commit 5a1d463 into main Feb 1, 2024
3 checks passed
@mimarz mimarz deleted the fix/button-css-overrides branch February 1, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button CSS specificity interferes with passed className
2 participants