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

FEATURE: noAutoClass option for DButton component #26701

Closed
wants to merge 7 commits into from

Conversation

awesomerobot
Copy link
Member

Often when styling .btn in themes, some styles get applied in undesirable places:

image

image

This PR gives the option of passing noAutoClass to DButton to exclude various automatically appended class names.

This is useful for situations where you'd still like to use DButton but don't want buttons to have default button styles applied.

I've applied this to two common scenarios — the "more" and "customize this section" buttons in the sidebar. These are technically buttons, but should not be styled along with other buttons when a theme uses the .btn class.

This also simplifies our default CSS, because we no longer have to override our own button styles.

@awesomerobot
Copy link
Member Author

Taking a different approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant