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

Exclude Bootstrap buttons from our button styling #2158

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

graygilmore
Copy link
Contributor

Unfortunately we cannot currently use the Bootstrap classes on button or
input elements. This change allows us to do that by adding another
:not() selector to our custom button styles.

We want to keep the @extend so that our extensions and other legacy
content continue to have appropriately styled buttons.

Unfortunatley we cannot simply add :not(.btn) because we then
@extend .btn and Sass very quickly gets confused as to what we're
asking it to do. Therefor we need to use :not([class*="btn"]) to
essentially trick Sass into ignoring our rather unique use case.

Unfortunately we cannot currently use the Bootstrap classes on button or
input elements. This change allows us to do that by adding another
`:not()` selector to our custom button styles.

We want to keep the `@extend` so that our extensions and other legacy
content continue to have appropriately styled buttons.

Unfortunatley we cannot simply add `:not(.btn)` because we then
`@extend .btn` and Sass very quickly gets confused as to what we're
asking it to do. Therefor we need to use `:not([class*="btn"])` to
essentially trick Sass into ignoring our rather unique use case.
@graygilmore graygilmore mentioned this pull request Aug 16, 2017
3 tasks
@jhawthorn jhawthorn merged commit 7b2c0ae into solidusio:master Aug 17, 2017
@graygilmore graygilmore deleted the bootstrap-buttons branch August 17, 2017 17:06
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.

3 participants