Skip to content

Commit

Permalink
✨ feat(button.scss): Add btn--disabled class since disabled attribute…
Browse files Browse the repository at this point in the history
… does not exist in divs and anchor tags for div and anchor tag based buttons #117
  • Loading branch information
Spiderpig86 committed Jun 6, 2022
1 parent 368a6db commit 8565138
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/cirrus-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -11346,12 +11346,12 @@ video.video-fullscreen {
outline: none;
}

.btn:disabled, button:disabled, [type=submit]:disabled, [type=reset]:disabled, [type=button]:disabled {
.btn:disabled, .btn.btn--disabled, button:disabled, button.btn--disabled, [type=submit]:disabled, [type=submit].btn--disabled, [type=reset]:disabled, [type=reset].btn--disabled, [type=button]:disabled, [type=button].btn--disabled {
cursor: not-allowed;
opacity: 0.5;
}

.btn:disabled:active, button:disabled:active, [type=submit]:disabled:active, [type=reset]:disabled:active, [type=button]:disabled:active {
.btn:disabled:active, .btn.btn--disabled:active, button:disabled:active, button.btn--disabled:active, [type=submit]:disabled:active, [type=submit].btn--disabled:active, [type=reset]:disabled:active, [type=reset].btn--disabled:active, [type=button]:disabled:active, [type=button].btn--disabled:active {
pointer-events: none;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -10245,12 +10245,12 @@ video.video-fullscreen {
outline: none;
}

.btn:disabled, button:disabled, [type=submit]:disabled, [type=reset]:disabled, [type=button]:disabled {
.btn:disabled, .btn.btn--disabled, button:disabled, button.btn--disabled, [type=submit]:disabled, [type=submit].btn--disabled, [type=reset]:disabled, [type=reset].btn--disabled, [type=button]:disabled, [type=button].btn--disabled {
cursor: not-allowed;
opacity: 0.5;
}

.btn:disabled:active, button:disabled:active, [type=submit]:disabled:active, [type=reset]:disabled:active, [type=button]:disabled:active {
.btn:disabled:active, .btn.btn--disabled:active, button:disabled:active, button.btn--disabled:active, [type=submit]:disabled:active, [type=submit].btn--disabled:active, [type=reset]:disabled:active, [type=reset].btn--disabled:active, [type=button]:disabled:active, [type=button].btn--disabled:active {
pointer-events: none;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -10246,12 +10246,12 @@ video.video-fullscreen {
outline: none;
}

.btn:disabled, button:disabled, [type=submit]:disabled, [type=reset]:disabled, [type=button]:disabled {
.btn:disabled, .btn.btn--disabled, button:disabled, button.btn--disabled, [type=submit]:disabled, [type=submit].btn--disabled, [type=reset]:disabled, [type=reset].btn--disabled, [type=button]:disabled, [type=button].btn--disabled {
cursor: not-allowed;
opacity: 0.5;
}

.btn:disabled:active, button:disabled:active, [type=submit]:disabled:active, [type=reset]:disabled:active, [type=button]:disabled:active {
.btn:disabled:active, .btn.btn--disabled:active, button:disabled:active, button.btn--disabled:active, [type=submit]:disabled:active, [type=submit].btn--disabled:active, [type=reset]:disabled:active, [type=reset].btn--disabled:active, [type=button]:disabled:active, [type=button].btn--disabled:active {
pointer-events: none;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $generate-utility: should-generate-classes($BUTTON);
outline: none;
}

&:disabled {
&:disabled, &.btn--disabled {
cursor: not-allowed;
opacity: 0.5;

Expand Down

0 comments on commit 8565138

Please sign in to comment.