Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/lovely-animals-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
61 changes: 41 additions & 20 deletions packages/components-css/button-css/src/test.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
@include mixin.nl-button--default-hover;
}

.nl-button[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--default-pressed-hover;
}

.nl-button[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--default-pressed-active;
}

Expand All @@ -39,11 +39,11 @@
@include mixin.nl-button--primary-active;
}

.nl-button.nl-button--primary[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--primary.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--primary-pressed-hover;
}

.nl-button.nl-button--primary[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--primary.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--primary-pressed-active;
}

Expand All @@ -55,11 +55,11 @@
@include mixin.nl-button--primary-positive-active;
}

.nl-button.nl-button--primary.nl-button--positive[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--primary.nl-button--positive.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--primary-positive-pressed-hover;
}

.nl-button.nl-button--primary.nl-button--positive[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--primary.nl-button--positive.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--primary-positive-pressed-active;
}

Expand All @@ -71,11 +71,11 @@
@include mixin.nl-button--primary-negative-active;
}

.nl-button.nl-button--primary.nl-button--negative[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--primary.nl-button--negative.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--primary-negative-pressed-hover;
}

.nl-button.nl-button--primary.nl-button--negative[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--primary.nl-button--negative.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--primary-negative-pressed-active;
}

Expand All @@ -88,11 +88,11 @@
@include mixin.nl-button--secondary-active;
}

.nl-button.nl-button--secondary[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--secondary.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--secondary-pressed-hover;
}

.nl-button.nl-button--secondary[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--secondary.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--secondary-pressed-active;
}

Expand All @@ -104,11 +104,11 @@
@include mixin.nl-button--secondary-positive-active;
}

.nl-button.nl-button--secondary.nl-button--positive[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--secondary.nl-button--positive.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--secondary-positive-pressed-hover;
}

.nl-button.nl-button--secondary.nl-button--positive[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--secondary.nl-button--positive.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--secondary-positive-pressed-active;
}

Expand All @@ -120,11 +120,11 @@
@include mixin.nl-button--secondary-negative-active;
}

.nl-button.nl-button--secondary.nl-button--negative[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--secondary.nl-button--negative.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--secondary-negative-pressed-hover;
}

.nl-button.nl-button--secondary.nl-button--negative[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--secondary.nl-button--negative.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--secondary-negative-pressed-active;
}

Expand All @@ -137,11 +137,11 @@
@include mixin.nl-button--subtle-active;
}

.nl-button.nl-button--subtle[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--subtle.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--subtle-pressed-hover;
}

.nl-button.nl-button--subtle[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--subtle.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--subtle-pressed-active;
}

Expand All @@ -153,11 +153,11 @@
@include mixin.nl-button--subtle-positive-active;
}

.nl-button.nl-button--subtle.nl-button--positive[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--subtle.nl-button--positive.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--subtle-positive-pressed-hover;
}

.nl-button.nl-button--subtle.nl-button--positive[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--subtle.nl-button--positive.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--subtle-positive-pressed-active;
}

Expand All @@ -169,14 +169,35 @@
@include mixin.nl-button--subtle-negative-active;
}

.nl-button.nl-button--subtle.nl-button--negative[aria-pressed="true" i].nl-button--hover-test {
.nl-button.nl-button--subtle.nl-button--negative.nl-button--pressed.nl-button--hover-test {
@include mixin.nl-button--subtle-negative-pressed-hover;
}

.nl-button.nl-button--subtle.nl-button--negative[aria-pressed="true" i].nl-button--active-test {
.nl-button.nl-button--subtle.nl-button--negative.nl-button--pressed.nl-button--active-test {
@include mixin.nl-button--subtle-negative-pressed-active;
}

/* Forced colors */
.nl-button.nl-button--forced-colors-test {
@include mixin.nl-button--forced-colors;
}

.nl-button--disabled.nl-button--forced-colors-test {
@include mixin.nl-button--forced-colors-disabled;
}

.nl-button--pressed.nl-button--forced-colors-test {
@include mixin.nl-button--forced-colors-pressed;
}

.nl-button--pressed.nl-button--disabled.nl-button--forced-colors-test {
@include mixin.nl-button--forced-colors-pressed-disabled;
}

.nl-button:not(.nl-button--disabled).nl-button--hover-test.nl-button--forced-colors-test {
@include mixin.nl-button--forced-colors-hover;
}

/* html */
.nl-html--button {
@include mixinHTML.nl-html--button;
Expand Down
Loading