@wwtdev/bsds-css 2.16.0 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,11 +54,11 @@ text color:
54
54
  vertical-align: middle;
55
55
  }
56
56
 
57
- .bs-button:hover {
57
+ .bs-button:where(:not(:disabled):not([aria-disabled="true"]):hover) {
58
58
  background-color: var(--btn-secondary);
59
59
  }
60
60
 
61
- .bs-button:active {
61
+ .bs-button:where(:not(:disabled):not([aria-disabled="true"]):active) {
62
62
  background-color: var(--btn-secondary);
63
63
  box-shadow: inset 0px 0px 4px 1px var(--btn-main);
64
64
  transform-origin: center;
@@ -79,16 +79,16 @@ text color:
79
79
  width: var(--btn-focus-pseudo-width);
80
80
  }
81
81
 
82
- .bs-button:focus::before {
82
+ .bs-button:where(:focus:not(:disabled):not([aria-disabled="true"]))::before {
83
83
  border-color: var(--btn-main);
84
84
  }
85
85
 
86
- .bs-button:focus-visible::before {
86
+ .bs-button:where(:focus-visible:not(:disabled):not([aria-disabled="true"]))::before {
87
87
  border-color: var(--btn-main);
88
88
  box-shadow: none;
89
89
  }
90
90
 
91
- .bs-button:focus:not(:focus-visible)::before {
91
+ .bs-button:where(:focus:not(:focus-visible):not(:disabled):not([aria-disabled="true"]))::before {
92
92
  border-color: transparent;
93
93
  box-shadow: none;
94
94
  }
@@ -104,11 +104,11 @@ text color:
104
104
  .bs-button:where([data-ghost]:not([data-ghost="false"]))::before {
105
105
  border-radius: 0.4375rem;
106
106
  }
107
- .bs-button:where([data-ghost]:not([data-ghost="false"])):hover,
108
- .bs-button:where([data-ghost]:not([data-ghost="false"])):focus {
107
+ .bs-button:where([data-ghost]:not([data-ghost="false"]):not(:disabled):not([aria-disabled="true"]):hover),
108
+ .bs-button:where([data-ghost]:not([data-ghost="false"]):not(:disabled):not([aria-disabled="true"]):focus) {
109
109
  background-color: var(--btn-light);
110
110
  }
111
- .bs-button:where([data-ghost]:not([data-ghost="false"])):active {
111
+ .bs-button:where([data-ghost]:not([data-ghost="false"]):not(:disabled):not([aria-disabled="true"]):active) {
112
112
  box-shadow:
113
113
  inset 0 0 0 1px var(--btn-main),
114
114
  inset 0px 0px 4px 1px var(--btn-highlight);
@@ -119,14 +119,12 @@ text color:
119
119
  --btn-ghost-ink: var(--bs-ink-plum);
120
120
  --btn-highlight: var(--bs-plum-100);
121
121
  --btn-light: var(--bs-plum-10);
122
- --btn-main: var(--bs-plum-400);
122
+ --btn-main: var(--bs-plum-base);
123
123
  --btn-secondary: var(--bs-plum-medium);
124
124
  }
125
125
  .dark .bs-button:where([data-variant^='secondary']) {
126
126
  --btn-highlight: var(--bs-plum-400);
127
127
  --btn-light: var(--bs-navy-400);
128
- --btn-main: var(--bs-plum-200);
129
- --btn-secondary: var(--bs-plum-300);
130
128
  }
131
129
  .bs-button:where([data-variant^='positive']) {
132
130
  --btn-ghost-ink: var(--bs-ink-purple);
@@ -190,26 +188,26 @@ text color:
190
188
  cursor: pointer;
191
189
  line-height: 150%;
192
190
  }
193
- .bs-button:where([data-text]:not([data-text="false"])):hover {
191
+ .bs-button:where([data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover) {
194
192
  --btn-ink: var(--bs-blue-base);
195
193
  background-color: transparent;
196
194
  text-decoration: underline;
197
195
  }
198
- .bs-button:where([data-text]:not([data-text="false"])):has(svg):hover {
196
+ .bs-button:where([data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover):has(svg) {
199
197
  text-decoration: none;
200
198
  }
201
- .bs-button:where([data-text]:not([data-text="false"])):active {
199
+ .bs-button:where([data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):active) {
202
200
  box-shadow: none;
203
201
  transform: none;
204
202
  }
205
203
 
206
204
  .bs-button:where([data-variant^='negative'][data-text]:not([data-text="false"])),
207
- .bs-button:where([data-variant^='negative'][data-text]:not([data-text="false"])):hover {
205
+ .bs-button:where([data-variant^='negative'][data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover) {
208
206
  --btn-ink: var(--bs-ink-red);
209
207
  }
210
208
 
211
209
  .bs-button:where([data-variant^='white'][data-text]:not([data-text="false"])),
212
- .bs-button:where([data-variant^='white'][data-text]:not([data-text="false"])):hover {
210
+ .bs-button:where([data-variant^='white'][data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover) {
213
211
  --btn-ink: var(--bs-ink-white);
214
212
  --btn-main: var(--bs-ink-white);
215
213
  }
@@ -265,6 +263,8 @@ text color:
265
263
  .bs-button:where([aria-disabled="true"]) {
266
264
  --btn-ink: var(--bs-ink-disabled);
267
265
  --btn-main: var(--bs-bg-disabled);
266
+ box-shadow: none;
267
+ transform: none;
268
268
  }
269
269
 
270
270
  .bs-button:where([data-ghost]:not([data-ghost="false"])):disabled,
@@ -183,7 +183,7 @@
183
183
 
184
184
  /* ------------------------------ Variant: "Live Now" Styles ------------------------------ */
185
185
  .bs-pill:where([data-variant^="live"]) {
186
- --pill-background: var(--bs-royal-400);
186
+ --pill-background: var(--bs-plum-base);
187
187
  --pill-text: var(--bs-white);
188
188
  --pill-gap: var(--bs-space-1);
189
189
  text-transform: uppercase;
@@ -0,0 +1,328 @@
1
+ @mixin table() {
2
+ /* ------ WRAPPER ------ */
3
+
4
+ .bs-table-wrap {
5
+ display: flex;
6
+ flex-direction: column;
7
+ overflow: hidden;
8
+ }
9
+
10
+ :where(.bs-table-wrap) {
11
+ font-size: var(--bs-text-sm);
12
+ color: var(--bs-table-cell-ink, var(--bs-ink-light));
13
+ border-radius: var(--bs-space-2);
14
+ border: 1px solid var(--bs-border-base);
15
+ }
16
+
17
+ :where(.bs-table-wrap-header, .bs-table-wrap-footer) {
18
+ padding-block: var(--bs-space-3);
19
+ padding-inline: var(--bs-table-cell-padding);
20
+ background: var(--bs-bg-medium);
21
+ border-color: inherit;
22
+ }
23
+
24
+ :where(.bs-table-wrap-header) {
25
+ border-bottom-width: 1px;
26
+ }
27
+
28
+ :where(.bs-table-wrap-footer) {
29
+ border-top-width: 1px;
30
+ }
31
+
32
+
33
+ /* ------ TABLE ------ */
34
+
35
+ .bs-table-scroll-wrap {
36
+ flex: 1;
37
+ border-color: inherit;
38
+ overflow: auto;
39
+ overscroll-behavior: none;
40
+ }
41
+
42
+ .bs-table {
43
+ display: grid;
44
+ grid-template-columns: var(--bs-table-col-widths);
45
+ }
46
+
47
+ :where(.bs-table) {
48
+ border-color: inherit;
49
+ }
50
+
51
+ /* ------ HEADER ROWGROUP ------ */
52
+
53
+ .bs-table-header-rowgroup {
54
+ grid-column: 1 / -1;
55
+ grid-row: span var(--bs-table-header-row-count);
56
+ display: grid;
57
+ grid-template-columns: subgrid;
58
+ grid-template-rows: subgrid;
59
+ border-color: inherit;
60
+ }
61
+
62
+ .bs-table-header-rowgroup-freeze {
63
+ position: sticky;
64
+ top: 0;
65
+ z-index: 1;
66
+
67
+ .bs-table:not(.bs-table-border-none) & {
68
+ box-shadow: 0 3px 0 rgba(0, 0, 0, .03);
69
+ }
70
+ }
71
+
72
+ /* ------ BODY ROWGROUP ------ */
73
+
74
+ .bs-table-body-rowgroup {
75
+ grid-column: 1 / -1;
76
+ grid-row: span var(--bs-table-body-row-count);
77
+ display: grid;
78
+ grid-template-columns: subgrid;
79
+ grid-template-rows: subgrid;
80
+ border-color: inherit;
81
+ }
82
+
83
+ /* ------ FOOTER ROWGROUP ------ */
84
+
85
+ .bs-table-footer-rowgroup {
86
+ grid-column: 1 / -1;
87
+ grid-row: span var(--bs-table-footer-row-count);
88
+ display: grid;
89
+ grid-template-columns: subgrid;
90
+ grid-template-rows: subgrid;
91
+ border-color: inherit;
92
+ }
93
+
94
+ .bs-table-footer-rowgroup-freeze {
95
+ position: sticky;
96
+ bottom: 0;
97
+
98
+ .bs-table:not(.bs-table-border-none) & {
99
+ box-shadow: 0 -3px 0 rgba(0, 0, 0, .03);
100
+ }
101
+ }
102
+
103
+ /* ------ ROWS ------ */
104
+
105
+ .bs-table-row {
106
+ grid-column: 1 / -1;
107
+ }
108
+
109
+ :where(.bs-table-row) {
110
+ background: var(--bs-bg-base);
111
+ border-color: inherit;
112
+ }
113
+
114
+ :where(.bs-table-header-rowgroup .bs-table-row) {
115
+ background: var(--bs-bg-light);
116
+ }
117
+
118
+ :where(.bs-table-row:has(.bs-table-head-cell, .bs-table-cell)) {
119
+ display: grid;
120
+ grid-template-columns: subgrid;
121
+ }
122
+
123
+ /* ------ FROZEN COLS ------ */
124
+
125
+ .bs-table-cols-frozen-left {
126
+ position: sticky;
127
+ left: 0;
128
+ grid-column: span var(--bs-table-frozen-left-count);
129
+ display: grid;
130
+ grid-template-columns: subgrid;
131
+ background: inherit;
132
+ border-color: inherit;
133
+
134
+ .bs-table:not(.bs-table-border-none) & {
135
+ box-shadow: 3px 0 0 rgba(0, 0, 0, .03);
136
+ }
137
+ }
138
+
139
+ .bs-table-cols-frozen-right {
140
+ position: sticky;
141
+ right: 0;
142
+ grid-column: span var(--bs-table-frozen-right-count);
143
+ display: grid;
144
+ grid-template-columns: subgrid;
145
+ background: inherit;
146
+ border-color: inherit;
147
+
148
+ .bs-table:not(.bs-table-border-none) & {
149
+ box-shadow: -3px 0 0 rgba(0, 0, 0, .03);
150
+ }
151
+ }
152
+
153
+ /* ------ CELLS ------ */
154
+
155
+ :where(.bs-table-head-cell) {
156
+ color: var(--bs-table-head-cell-ink, var(--bs-ink-base));
157
+ font-weight: var(--bs-font-bold);
158
+ border-color: inherit;
159
+ }
160
+
161
+ /* Couldn't use :where due to Blue Steel reset styles on <button> imposing font-size.
162
+ Adding inherit in case consumer does custom header cell styles */
163
+ .bs-table-head-cell .bs-sort-toggle {
164
+ font-size: inherit;
165
+ font-weight: var(--bs-font-bold);
166
+ color: inherit;
167
+ line-height: inherit;
168
+ letter-spacing: inherit;
169
+ }
170
+
171
+ :where(.bs-table-cell) {
172
+ border-color: inherit;
173
+ }
174
+
175
+ /* ------ PROP: CELL-PADDING ------ */
176
+
177
+ :root {
178
+ --bs-table-cell-padding-xs: var(--bs-space-2);
179
+ --bs-table-cell-padding-sm: var(--bs-space-3);
180
+ --bs-table-cell-padding-md: var(--bs-space-4);
181
+ --bs-table-cell-padding-lg: var(--bs-space-6);
182
+ --bs-table-cell-padding-xl: var(--bs-space-8);
183
+ }
184
+
185
+ :where(.bs-table-head-cell, .bs-table-cell) {
186
+ padding: var(--bs-table-cell-padding);
187
+ }
188
+
189
+ /* ------ PROP: TRUNCATE ------ */
190
+
191
+ :where(.bs-table-truncate):where(.bs-table-head-cell, .bs-table-cell) {
192
+ overflow: hidden;
193
+ text-overflow: ellipsis;
194
+ white-space: nowrap;
195
+ }
196
+
197
+
198
+ /* ------ PROP: STRIPED ROWS ------ */
199
+
200
+ :where(.bs-table-striped .bs-table-body-rowgroup .bs-table-row:nth-child(even)) {
201
+ background: var(--bs-bg-light);
202
+ }
203
+
204
+
205
+ /* ------ PROP: ROW HOVER ------ */
206
+
207
+ :where(.bs-table-row-hover .bs-table-body-rowgroup .bs-table-row:hover) {
208
+ background: var(--bs-table-row-hover, var(--bs-bg-light));
209
+ transition: background-color 200ms;
210
+ }
211
+
212
+
213
+ /* ------ PROP: BORDERS ------ */
214
+
215
+ /* -- borders="rows" -- */
216
+ :where(.bs-table-border-rows) :where(.bs-table-row) {
217
+ border-bottom-width: 1px;
218
+ }
219
+
220
+ /* -- borders="cols" -- */
221
+ /* setting following cell's left border instead of each cell's right, so Table's left/right border is easier for consumer to override with utility classes */
222
+ :where(.bs-table-border-cols) :where(.bs-table-head-cell + .bs-table-head-cell, .bs-table-cell + .bs-table-cell) {
223
+ border-left-width: 1px;
224
+ }
225
+
226
+ .bs-table-border-cols .bs-table-header-rowgroup {
227
+ border-bottom-width: 1px;
228
+ }
229
+
230
+ /* -- borders="grid" -- */
231
+ :where(.bs-table-border-grid) :where(.bs-table-row) {
232
+ border-bottom-width: 1px;
233
+ }
234
+
235
+ /* setting following cell's left border instead of each cell's right, so Table's left/right border is easier for consumer to override with utility classes */
236
+ :where(.bs-table-border-grid) :where(.bs-table-head-cell + .bs-table-head-cell, .bs-table-cell + .bs-table-cell) {
237
+ border-left-width: 1px;
238
+ }
239
+
240
+ /* -- borders="frozen" -- */
241
+ .bs-table-border-frozen .bs-table-header-rowgroup-freeze {
242
+ border-bottom-width: 1px;
243
+ }
244
+
245
+ /* -- frozen col and footer-rowgroup sections will always show border, unless borders="none" -- */
246
+ /* (header-rowgroup is not included below since TableRow bottom border covers most cases) */
247
+ .bs-table:not(.bs-table-border-none) .bs-table-cols-frozen-left {
248
+ border-right-width: 1px;
249
+ }
250
+
251
+ .bs-table:not(.bs-table-border-none) .bs-table-cols-frozen-right {
252
+ border-left-width: 1px;
253
+ }
254
+
255
+ .bs-table:not(.bs-table-border-none) .bs-table-footer-rowgroup-freeze {
256
+ border-top-width: 1px;
257
+ }
258
+
259
+ /* turn off last row's bottom border, since it would double-up with Table's border */
260
+ :where(.bs-table-body-rowgroup, .bs-table-footer-rowgroup) .bs-table-row:last-of-type {
261
+ border-bottom-width: 0;
262
+ }
263
+
264
+
265
+ /* ------ TABLE COLUMN RESIZER ------ */
266
+
267
+ .bs-table-col-resizer {
268
+ position: fixed; /* fixed instead of absolute, due to using coordinates from .getBoundingClientRect() */
269
+ top: 0;
270
+ left: -8px;
271
+ bottom: 0;
272
+ width: 15px; /* includes 5px resizer handle width + 5px of extra hover target area on left and right of handle */
273
+ cursor: col-resize;
274
+ touch-action: none;
275
+ z-index: var(--bs-table-col-resizer-z, 10);
276
+ transform: translate(var(--bs-table-col-resizer-x), var(--bs-table-col-resizer-y));
277
+
278
+ /* resizer handle and vertical line set-up */
279
+ &:before,
280
+ &::after {
281
+ content: "";
282
+ position: absolute;
283
+ top: 0;
284
+ left: 0;
285
+ background: var(--bs-table-col-resizer-color, var(--bs-blue-base));
286
+ }
287
+
288
+ /* resizer handle */
289
+ &::after {
290
+ left: 5px;
291
+ width: 5px;
292
+ height: var(--bs-table-col-resizer-handle-height);
293
+ }
294
+
295
+ /* resizer vertical line/tail */
296
+ &::before {
297
+ left: 7px;
298
+ width: 1px;
299
+ height: var(--bs-table-col-resizer-tail-height);
300
+ display: none;
301
+ }
302
+
303
+ &.bs-table-col-resizer-active::before {
304
+ display: block;
305
+ }
306
+ }
307
+
308
+ /* ------ SORT TOGGLE ------ */
309
+
310
+ /* Override Blue Steel CSS: It adds "relative" to buttons by default, which was causing an overlap issue when a Table with frozen, sortable cols scrolled horizontally */
311
+ .bs-sort-toggle {
312
+ position: static;
313
+ }
314
+
315
+ /* Using :where to lower specificity so consumers can use utility classes to override */
316
+ :where(.bs-sort-toggle) {
317
+ display: inline-flex;
318
+ align-items: center;
319
+ gap: var(--bs-space-2);
320
+ cursor: pointer;
321
+ }
322
+
323
+ :where(.bs-sort-toggle .bs-icon) {
324
+ flex-shrink: 0;
325
+ }
326
+
327
+ }
328
+
@@ -42,8 +42,8 @@
42
42
  /* Active States */
43
43
  :where(.bs-tooltip:not([data-position])):hover :where(.bs-tooltip-text),
44
44
  :where(.bs-tooltip[data-position="top"]):hover :where(.bs-tooltip-text),
45
- :where(.bs-tooltip:not([data-position])):focus-within :where(.bs-tooltip-text),
46
- :where(.bs-tooltip[data-position="top"]):focus-within :where(.bs-tooltip-text),
45
+ :where(.bs-tooltip:not([data-position])):has(:focus-visible) :where(.bs-tooltip-text),
46
+ :where(.bs-tooltip[data-position="top"]):has(:focus-visible) :where(.bs-tooltip-text),
47
47
  :where(.bs-tooltip:not([data-position]))[data-shown] :where(.bs-tooltip-text),
48
48
  :where(.bs-tooltip[data-position="top"])[data-shown] :where(.bs-tooltip-text) {
49
49
  opacity: 1;
@@ -60,7 +60,7 @@
60
60
 
61
61
  /* Active States */
62
62
  :where(.bs-tooltip[data-position="bottom"]):hover :where(.bs-tooltip-text),
63
- :where(.bs-tooltip[data-position="bottom"]):focus-within :where(.bs-tooltip-text),
63
+ :where(.bs-tooltip[data-position="bottom"]):has(:focus-visible) :where(.bs-tooltip-text),
64
64
  :where(.bs-tooltip[data-position="bottom"])[data-shown] :where(.bs-tooltip-text) {
65
65
  opacity: 1;
66
66
  transform: translateX(-50%) scale(1);
@@ -76,7 +76,7 @@
76
76
 
77
77
  /* Active States */
78
78
  :where(.bs-tooltip[data-position="left"]):hover :where(.bs-tooltip-text),
79
- :where(.bs-tooltip[data-position="left"]):focus-within :where(.bs-tooltip-text),
79
+ :where(.bs-tooltip[data-position="left"]):has(:focus-visible) :where(.bs-tooltip-text),
80
80
  :where(.bs-tooltip[data-position="left"])[data-shown] :where(.bs-tooltip-text) {
81
81
  opacity: 1;
82
82
  transform: translateY(-50%) scale(1);
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  :where(.bs-tooltip[data-position="right"]):hover :where(.bs-tooltip-text),
94
- :where(.bs-tooltip[data-position="right"]):focus-within :where(.bs-tooltip-text),
94
+ :where(.bs-tooltip[data-position="right"]):has(:focus-visible) :where(.bs-tooltip-text),
95
95
  :where(.bs-tooltip[data-position="right"])[data-shown] :where(.bs-tooltip-text) {
96
96
  opacity: 1;
97
97
  transform: translateY(-50%) scale(1);
@@ -131,10 +131,10 @@
131
131
  :where(.bs-tooltip[data-position="top-right"]):hover :where(.bs-tooltip-text),
132
132
  :where(.bs-tooltip[data-position="bottom-left"]):hover :where(.bs-tooltip-text),
133
133
  :where(.bs-tooltip[data-position="bottom-right"]):hover :where(.bs-tooltip-text),
134
- :where(.bs-tooltip[data-position="top-left"]):focus-within :where(.bs-tooltip-text),
135
- :where(.bs-tooltip[data-position="top-right"]):focus-within :where(.bs-tooltip-text),
136
- :where(.bs-tooltip[data-position="bottom-left"]):focus-within :where(.bs-tooltip-text),
137
- :where(.bs-tooltip[data-position="bottom-right"]):focus-within :where(.bs-tooltip-text),
134
+ :where(.bs-tooltip[data-position="top-left"]):has(:focus-visible) :where(.bs-tooltip-text),
135
+ :where(.bs-tooltip[data-position="top-right"]):has(:focus-visible) :where(.bs-tooltip-text),
136
+ :where(.bs-tooltip[data-position="bottom-left"]):has(:focus-visible) :where(.bs-tooltip-text),
137
+ :where(.bs-tooltip[data-position="bottom-right"]):has(:focus-visible) :where(.bs-tooltip-text),
138
138
  :where(.bs-tooltip[data-position="top-left"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
139
139
  :where(.bs-tooltip[data-position="top-right"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
140
140
  :where(.bs-tooltip[data-position="bottom-left"]:not([data-shown="false"]))[data-shown] :where(.bs-tooltip-text),
@@ -149,15 +149,31 @@ Don't display unless data-shown is present
149
149
  This must go last to properly override the other classes
150
150
  */
151
151
  :where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):hover :where(.bs-tooltip-text),
152
- :where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):focus-within :where(.bs-tooltip-text) {
152
+ :where(.bs-tooltip[data-disabled]:not([data-disabled="false"]):not([data-shown])):has(:focus-visible) :where(.bs-tooltip-text) {
153
153
  opacity: 0;
154
154
  transform: scale(0);
155
155
  }
156
156
  :where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):hover :where(.bs-tooltip-text),
157
- :where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):focus-within :where(.bs-tooltip-text) {
157
+ :where(.bs-tooltip[data-shown="false"][data-disabled]:not([data-disabled="false"])):has(:focus-visible) :where(.bs-tooltip-text) {
158
158
  opacity: 0;
159
159
  transform: scale(0);
160
160
  }
161
161
 
162
+ /* -------------------- COMPONENT-SPECIFIC STYLES -------------------- */
163
+ .bs-tooltip :where(.bs-tooltip-text.escaped) {
164
+ opacity: 0;
165
+ transform: scale(0.5);
166
+ }
167
+
168
+ .bs-tooltip :where(.bs-tooltip-text.escaped-x) {
169
+ opacity: 0;
170
+ transform: translateX(-50%) scale(0.5);
171
+ }
172
+
173
+ .bs-tooltip :where(.bs-tooltip-text.escaped-y) {
174
+ opacity: 0;
175
+ transform: translateY(-50%) scale(0.5);
176
+ }
177
+
162
178
  }
163
179
 
@@ -53,11 +53,11 @@ text color:
53
53
  vertical-align: middle;
54
54
  }
55
55
 
56
- .bs-button:hover {
56
+ .bs-button:where(:not(:disabled):not([aria-disabled="true"]):hover) {
57
57
  background-color: var(--btn-secondary);
58
58
  }
59
59
 
60
- .bs-button:active {
60
+ .bs-button:where(:not(:disabled):not([aria-disabled="true"]):active) {
61
61
  background-color: var(--btn-secondary);
62
62
  box-shadow: inset 0px 0px 4px 1px var(--btn-main);
63
63
  transform-origin: center;
@@ -78,16 +78,16 @@ text color:
78
78
  width: var(--btn-focus-pseudo-width);
79
79
  }
80
80
 
81
- .bs-button:focus::before {
81
+ .bs-button:where(:focus:not(:disabled):not([aria-disabled="true"]))::before {
82
82
  border-color: var(--btn-main);
83
83
  }
84
84
 
85
- .bs-button:focus-visible::before {
85
+ .bs-button:where(:focus-visible:not(:disabled):not([aria-disabled="true"]))::before {
86
86
  border-color: var(--btn-main);
87
87
  box-shadow: none;
88
88
  }
89
89
 
90
- .bs-button:focus:not(:focus-visible)::before {
90
+ .bs-button:where(:focus:not(:focus-visible):not(:disabled):not([aria-disabled="true"]))::before {
91
91
  border-color: transparent;
92
92
  box-shadow: none;
93
93
  }
@@ -103,11 +103,11 @@ text color:
103
103
  .bs-button:where([data-ghost]:not([data-ghost="false"]))::before {
104
104
  border-radius: 0.4375rem;
105
105
  }
106
- .bs-button:where([data-ghost]:not([data-ghost="false"])):hover,
107
- .bs-button:where([data-ghost]:not([data-ghost="false"])):focus {
106
+ .bs-button:where([data-ghost]:not([data-ghost="false"]):not(:disabled):not([aria-disabled="true"]):hover),
107
+ .bs-button:where([data-ghost]:not([data-ghost="false"]):not(:disabled):not([aria-disabled="true"]):focus) {
108
108
  background-color: var(--btn-light);
109
109
  }
110
- .bs-button:where([data-ghost]:not([data-ghost="false"])):active {
110
+ .bs-button:where([data-ghost]:not([data-ghost="false"]):not(:disabled):not([aria-disabled="true"]):active) {
111
111
  box-shadow:
112
112
  inset 0 0 0 1px var(--btn-main),
113
113
  inset 0px 0px 4px 1px var(--btn-highlight);
@@ -118,14 +118,12 @@ text color:
118
118
  --btn-ghost-ink: var(--bs-ink-plum);
119
119
  --btn-highlight: var(--bs-plum-100);
120
120
  --btn-light: var(--bs-plum-10);
121
- --btn-main: var(--bs-plum-400);
121
+ --btn-main: var(--bs-plum-base);
122
122
  --btn-secondary: var(--bs-plum-medium);
123
123
  }
124
124
  .dark .bs-button:where([data-variant^='secondary']) {
125
125
  --btn-highlight: var(--bs-plum-400);
126
126
  --btn-light: var(--bs-navy-400);
127
- --btn-main: var(--bs-plum-200);
128
- --btn-secondary: var(--bs-plum-300);
129
127
  }
130
128
  .bs-button:where([data-variant^='positive']) {
131
129
  --btn-ghost-ink: var(--bs-ink-purple);
@@ -189,26 +187,26 @@ text color:
189
187
  cursor: pointer;
190
188
  line-height: 150%;
191
189
  }
192
- .bs-button:where([data-text]:not([data-text="false"])):hover {
190
+ .bs-button:where([data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover) {
193
191
  --btn-ink: var(--bs-blue-base);
194
192
  background-color: transparent;
195
193
  text-decoration: underline;
196
194
  }
197
- .bs-button:where([data-text]:not([data-text="false"])):has(svg):hover {
195
+ .bs-button:where([data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover):has(svg) {
198
196
  text-decoration: none;
199
197
  }
200
- .bs-button:where([data-text]:not([data-text="false"])):active {
198
+ .bs-button:where([data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):active) {
201
199
  box-shadow: none;
202
200
  transform: none;
203
201
  }
204
202
 
205
203
  .bs-button:where([data-variant^='negative'][data-text]:not([data-text="false"])),
206
- .bs-button:where([data-variant^='negative'][data-text]:not([data-text="false"])):hover {
204
+ .bs-button:where([data-variant^='negative'][data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover) {
207
205
  --btn-ink: var(--bs-ink-red);
208
206
  }
209
207
 
210
208
  .bs-button:where([data-variant^='white'][data-text]:not([data-text="false"])),
211
- .bs-button:where([data-variant^='white'][data-text]:not([data-text="false"])):hover {
209
+ .bs-button:where([data-variant^='white'][data-text]:not([data-text="false"]):not(:disabled):not([aria-disabled="true"]):hover) {
212
210
  --btn-ink: var(--bs-ink-white);
213
211
  --btn-main: var(--bs-ink-white);
214
212
  }
@@ -264,6 +262,8 @@ text color:
264
262
  .bs-button:where([aria-disabled="true"]) {
265
263
  --btn-ink: var(--bs-ink-disabled);
266
264
  --btn-main: var(--bs-bg-disabled);
265
+ box-shadow: none;
266
+ transform: none;
267
267
  }
268
268
 
269
269
  .bs-button:where([data-ghost]:not([data-ghost="false"])):disabled,
@@ -182,7 +182,7 @@
182
182
 
183
183
  /* ------------------------------ Variant: "Live Now" Styles ------------------------------ */
184
184
  .bs-pill:where([data-variant^="live"]) {
185
- --pill-background: var(--bs-royal-400);
185
+ --pill-background: var(--bs-plum-base);
186
186
  --pill-text: var(--bs-white);
187
187
  --pill-gap: var(--bs-space-1);
188
188
  text-transform: uppercase;