@navikt/ds-css 8.9.0 → 8.9.1
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.
- package/CHANGELOG.md +10 -0
- package/dist/component/button.css +32 -0
- package/dist/component/button.min.css +1 -1
- package/dist/component/date.css +14 -0
- package/dist/component/date.min.css +1 -1
- package/dist/component/form.css +44 -5
- package/dist/component/form.min.css +1 -1
- package/dist/components.css +90 -5
- package/dist/components.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +91 -6
- package/dist/index.min.css +1 -1
- package/package.json +2 -2
- package/src/button.css +10 -4
- package/src/data-table.css +7 -2
- package/src/data-token-filter.css +74 -0
- package/src/data-toolbar.css +3 -4
- package/src/date.css +14 -0
- package/src/form/fieldset.css +2 -1
- package/src/form/radio-checkbox.css +43 -7
package/dist/components.css
CHANGED
|
@@ -597,6 +597,14 @@
|
|
|
597
597
|
color: var(--ax-text-default);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
+
[data-color="neutral"] > .aksel-button[data-variant="secondary"]:not([data-color]) {
|
|
601
|
+
color: var(--ax-text-default);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
[data-color="neutral"] :not([data-color]) .aksel-button[data-variant="secondary"]:not([data-color]) {
|
|
605
|
+
color: var(--ax-text-default);
|
|
606
|
+
}
|
|
607
|
+
|
|
600
608
|
.aksel-button[data-variant="secondary"]:hover {
|
|
601
609
|
--__axc-button-border-color: var(--ax-border-strong);
|
|
602
610
|
background-color: var(--ax-bg-moderate-hoverA);
|
|
@@ -615,6 +623,10 @@
|
|
|
615
623
|
color: var(--ax-text-default);
|
|
616
624
|
}
|
|
617
625
|
|
|
626
|
+
[data-color="neutral"] > .aksel-button[data-variant="secondary"]:-webkit-any(:disabled, .aksel-button--disabled):not([data-color]) {
|
|
627
|
+
color: var(--ax-text-default);
|
|
628
|
+
}
|
|
629
|
+
|
|
618
630
|
.aksel-button[data-variant="secondary"]:is(:disabled, .aksel-button--disabled) {
|
|
619
631
|
color: var(--ax-text-subtle);
|
|
620
632
|
background-color: rgba(0, 0, 0, 0);
|
|
@@ -624,6 +636,10 @@
|
|
|
624
636
|
color: var(--ax-text-default);
|
|
625
637
|
}
|
|
626
638
|
|
|
639
|
+
[data-color="neutral"] > .aksel-button[data-variant="secondary"]:is(:disabled, .aksel-button--disabled):not([data-color]) {
|
|
640
|
+
color: var(--ax-text-default);
|
|
641
|
+
}
|
|
642
|
+
|
|
627
643
|
.aksel-button[data-variant="tertiary"] {
|
|
628
644
|
color: var(--ax-text-subtle);
|
|
629
645
|
background-color: rgba(0, 0, 0, 0);
|
|
@@ -633,6 +649,14 @@
|
|
|
633
649
|
color: var(--ax-text-default);
|
|
634
650
|
}
|
|
635
651
|
|
|
652
|
+
[data-color="neutral"] > .aksel-button[data-variant="tertiary"]:not([data-color], [data-pressed="true"]) {
|
|
653
|
+
color: var(--ax-text-default);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
[data-color="neutral"] :not([data-color]) .aksel-button[data-variant="tertiary"]:not([data-color], [data-pressed="true"]) {
|
|
657
|
+
color: var(--ax-text-default);
|
|
658
|
+
}
|
|
659
|
+
|
|
636
660
|
.aksel-button[data-variant="tertiary"]:hover {
|
|
637
661
|
background-color: var(--ax-bg-moderate-hoverA);
|
|
638
662
|
}
|
|
@@ -655,6 +679,10 @@
|
|
|
655
679
|
color: var(--ax-text-default);
|
|
656
680
|
}
|
|
657
681
|
|
|
682
|
+
[data-color="neutral"] > .aksel-button[data-variant="tertiary"]:-webkit-any(:disabled, .aksel-button--disabled):not([data-color]) {
|
|
683
|
+
color: var(--ax-text-default);
|
|
684
|
+
}
|
|
685
|
+
|
|
658
686
|
.aksel-button[data-variant="tertiary"]:is(:disabled, .aksel-button--disabled) {
|
|
659
687
|
color: var(--ax-text-subtle);
|
|
660
688
|
background-color: rgba(0, 0, 0, 0);
|
|
@@ -664,6 +692,10 @@
|
|
|
664
692
|
color: var(--ax-text-default);
|
|
665
693
|
}
|
|
666
694
|
|
|
695
|
+
[data-color="neutral"] > .aksel-button[data-variant="tertiary"]:is(:disabled, .aksel-button--disabled):not([data-color]) {
|
|
696
|
+
color: var(--ax-text-default);
|
|
697
|
+
}
|
|
698
|
+
|
|
667
699
|
.aksel-button--small, .aksel-button--xsmall {
|
|
668
700
|
--__axc-button-icon-margin: -2px;
|
|
669
701
|
}
|
|
@@ -824,7 +856,7 @@
|
|
|
824
856
|
margin-top: .125rem;
|
|
825
857
|
}
|
|
826
858
|
|
|
827
|
-
.aksel-fieldset > .aksel-sr-only + :not(:first-child, :empty) {
|
|
859
|
+
.aksel-fieldset > .aksel-sr-only + :not(:first-child, :empty), .aksel-fieldset > .aksel-typo--visually-hidden + :not(:first-child, :empty) {
|
|
828
860
|
margin-top: 0;
|
|
829
861
|
}
|
|
830
862
|
|
|
@@ -1228,8 +1260,6 @@
|
|
|
1228
1260
|
}
|
|
1229
1261
|
|
|
1230
1262
|
.aksel-checkbox, .aksel-radio {
|
|
1231
|
-
--__axc-radio-checkbox-marker-size: 1.5rem;
|
|
1232
|
-
--__axc-radio-checkbox-marker-target: 2.75rem;
|
|
1233
1263
|
gap: var(--ax-space-2) 0;
|
|
1234
1264
|
width: -webkit-fit-content;
|
|
1235
1265
|
width: fit-content;
|
|
@@ -1250,8 +1280,6 @@
|
|
|
1250
1280
|
}
|
|
1251
1281
|
|
|
1252
1282
|
.aksel-checkbox--small, .aksel-radio--small {
|
|
1253
|
-
--__axc-radio-checkbox-marker-size: 1.25rem;
|
|
1254
|
-
--__axc-radio-checkbox-marker-target: 2rem;
|
|
1255
1283
|
padding: var(--ax-space-6) 0;
|
|
1256
1284
|
}
|
|
1257
1285
|
|
|
@@ -1272,10 +1300,30 @@
|
|
|
1272
1300
|
}
|
|
1273
1301
|
|
|
1274
1302
|
.aksel-checkbox__input-wrapper {
|
|
1303
|
+
--__axc-radio-checkbox-marker-size: 1.5rem;
|
|
1304
|
+
--__axc-radio-checkbox-marker-target: 2.75rem;
|
|
1275
1305
|
height: var(--__axc-radio-checkbox-marker-size);
|
|
1276
1306
|
position: relative;
|
|
1277
1307
|
}
|
|
1278
1308
|
|
|
1309
|
+
.aksel-checkbox--small .aksel-checkbox__input-wrapper {
|
|
1310
|
+
--__axc-radio-checkbox-marker-size: 1.25rem;
|
|
1311
|
+
--__axc-radio-checkbox-marker-target: 2rem;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
.aksel-checkbox__input-wrapper[data-standalone="true"] {
|
|
1315
|
+
margin: calc(calc(var(--__axc-radio-checkbox-marker-target) - var(--__axc-radio-checkbox-marker-size)) / 2);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.aksel-checkbox__input-wrapper[data-standalone="true"] > .aksel-checkbox__input:focus-visible {
|
|
1319
|
+
outline: 3px solid var(--ax-border-focus);
|
|
1320
|
+
outline-offset: 3px;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.aksel-checkbox__input-wrapper[data-compact="true"] {
|
|
1324
|
+
--__axc-radio-checkbox-marker-target: 2rem;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1279
1327
|
.aksel-checkbox__input, .aksel-radio__input {
|
|
1280
1328
|
--__axc-radio-checkbox-marker-border: 2px;
|
|
1281
1329
|
-webkit-appearance: none;
|
|
@@ -1300,10 +1348,33 @@
|
|
|
1300
1348
|
position: absolute;
|
|
1301
1349
|
}
|
|
1302
1350
|
|
|
1351
|
+
.aksel-radio__input {
|
|
1352
|
+
--__axc-radio-checkbox-marker-size: 1.5rem;
|
|
1353
|
+
--__axc-radio-checkbox-marker-target: 2.75rem;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.aksel-radio--small .aksel-radio__input {
|
|
1357
|
+
--__axc-radio-checkbox-marker-size: 1.25rem;
|
|
1358
|
+
--__axc-radio-checkbox-marker-target: 2rem;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1303
1361
|
.aksel-radio__input {
|
|
1304
1362
|
border-radius: var(--ax-radius-full);
|
|
1305
1363
|
}
|
|
1306
1364
|
|
|
1365
|
+
.aksel-radio__input[data-standalone="true"] {
|
|
1366
|
+
margin: calc(calc(var(--__axc-radio-checkbox-marker-target) - var(--__axc-radio-checkbox-marker-size)) / 2);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.aksel-radio__input[data-standalone="true"]:focus-visible {
|
|
1370
|
+
outline: 3px solid var(--ax-border-focus);
|
|
1371
|
+
outline-offset: 3px;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.aksel-radio__input[data-compact="true"] {
|
|
1375
|
+
--__axc-radio-checkbox-marker-target: 2rem;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1307
1378
|
.aksel-checkbox__input:indeterminate {
|
|
1308
1379
|
justify-content: center;
|
|
1309
1380
|
align-items: center;
|
|
@@ -3621,6 +3692,7 @@
|
|
|
3621
3692
|
.aksel-date__field-button {
|
|
3622
3693
|
--__axc-button-border-width: 1px;
|
|
3623
3694
|
--__axc-button-border-color: var(--ax-border-neutral);
|
|
3695
|
+
position: relative;
|
|
3624
3696
|
}
|
|
3625
3697
|
|
|
3626
3698
|
.aksel-date__field-button:not(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
@@ -3672,8 +3744,21 @@
|
|
|
3672
3744
|
color: var(--ax-text-neutral-subtle);
|
|
3673
3745
|
}
|
|
3674
3746
|
|
|
3747
|
+
.aksel-date__field-button:before {
|
|
3748
|
+
content: "";
|
|
3749
|
+
border-radius: inherit;
|
|
3750
|
+
background-color: var(--ax-bg-input);
|
|
3751
|
+
z-index: -1;
|
|
3752
|
+
position: absolute;
|
|
3753
|
+
top: 0;
|
|
3754
|
+
bottom: 0;
|
|
3755
|
+
left: 0;
|
|
3756
|
+
right: 0;
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3675
3759
|
.aksel-date__field-wrapper {
|
|
3676
3760
|
border-radius: var(--ax-radius-8);
|
|
3761
|
+
z-index: 0;
|
|
3677
3762
|
width: -webkit-fit-content;
|
|
3678
3763
|
width: fit-content;
|
|
3679
3764
|
display: inline-flex;
|