@navikt/ds-css 8.8.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 +20 -0
- package/dist/component/button.css +32 -0
- package/dist/component/button.min.css +1 -1
- package/dist/component/date.css +52 -25
- 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/component/internalheader.css +18 -0
- package/dist/component/internalheader.min.css +1 -1
- package/dist/components.css +146 -30
- 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 +147 -31
- package/dist/index.min.css +1 -1
- package/package.json +3 -3
- package/src/button.css +10 -4
- package/src/chips.css +0 -2
- package/src/data-table.css +45 -23
- package/src/data-token-filter.css +78 -9
- package/src/data-toolbar.css +21 -10
- package/src/date.css +49 -25
- package/src/form/fieldset.css +2 -1
- package/src/form/radio-checkbox.css +43 -7
- package/src/internalheader.css +18 -0
- package/src/list.css +0 -1
- package/src/listbox.css +43 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer aksel.reset,aksel.theming,aksel.baseline,aksel.print,aksel.typography,aksel.components.core,aksel.components.core.loader,aksel.components.core.button,aksel.components.form;@layer aksel.components.modules{.aksel-internalheader{background:var(--ax-bg-raised);border-bottom:1px solid var(--ax-border-neutral-subtleA);align-self:stretch;min-height:3rem;display:flex}@media(forced-colors:active){.aksel-internalheader{color:buttontext;background-color:buttonface;border:1px solid buttontext}}.aksel-internalheader__title{font:inherit;font-weight:var(--ax-font-weight-bold);text-align:left;padding-top:0;padding-bottom:0;padding-inline:var(--ax-space-24) var(--ax-space-20);border:none;border-right:1px solid var(--ax-border-neutral-subtleA);color:var(--ax-text-neutral);background:none;align-items:center;margin:0;line-height:normal;text-decoration:none;display:flex;overflow:visible}.aksel-internalheader__title:-webkit-any(button){cursor:pointer}.aksel-internalheader__title:is(button){cursor:pointer}.aksel-internalheader__title:hover{background:var(--ax-bg-neutral-moderate-hoverA)}.aksel-internalheader__title:-webkit-any(:hover,:active):not(button,a){background:initial}.aksel-internalheader__title:is(:hover,:active):not(button,a){background:initial}.aksel-internalheader__user{padding:0 var(--ax-space-20);border-left:1px solid var(--ax-border-neutral-subtleA);align-items:center;display:flex}.aksel-internalheader__button{padding:0 var(--ax-space-12);font:inherit;cursor:pointer;text-align:left;justify-self:center;align-items:center;gap:var(--ax-space-8);border:none;border-left:1px solid var(--ax-border-neutral-subtleA);color:var(--ax-text-neutral);background:none;margin:0;line-height:normal;display:flex;overflow:visible}.aksel-internalheader__button:hover{background:var(--ax-bg-neutral-moderate-hoverA)}@media(forced-colors:active){.aksel-internalheader__button:hover{color:highlight;isolation:isolate;background-color:highlighttext;border-color:highlight;outline:1px solid highlight}}:is(.aksel-internalheader__title,.aksel-internalheader__button):focus-visible{outline:3px solid var(--ax-border-focus);outline-offset:-4px}:is(.aksel-internalheader__title,.aksel-internalheader__button):active{background:var(--ax-bg-neutral-moderate-pressedA)}.aksel-internalheader__user-button{padding-left:var(--ax-space-20);gap:var(--ax-space-16)}}@layer aksel.layout;
|
|
1
|
+
@layer aksel.reset,aksel.theming,aksel.baseline,aksel.print,aksel.typography,aksel.components.core,aksel.components.core.loader,aksel.components.core.button,aksel.components.form;@layer aksel.components.modules{.aksel-internalheader{background:var(--ax-bg-raised);border-bottom:1px solid var(--ax-border-neutral-subtleA);align-self:stretch;min-height:3rem;display:flex}@media(forced-colors:active){.aksel-internalheader{color:buttontext;background-color:buttonface;border:1px solid buttontext}}.aksel-internalheader__title{font:inherit;font-weight:var(--ax-font-weight-bold);text-align:left;padding-top:0;padding-bottom:0;padding-inline:var(--ax-space-24) var(--ax-space-20);border:none;border-right:1px solid var(--ax-border-neutral-subtleA);color:var(--ax-text-neutral);background:none;align-items:center;margin:0;line-height:normal;text-decoration:none;display:flex;overflow:visible}.aksel-internalheader__title:-webkit-any(button){cursor:pointer}.aksel-internalheader__title:is(button){cursor:pointer}.aksel-internalheader__title:hover{background:var(--ax-bg-neutral-moderate-hoverA)}.aksel-internalheader__title:-webkit-any(:hover,:active):not(button,a){background:initial}.aksel-internalheader__title:is(:hover,:active):not(button,a){background:initial}.aksel-internalheader__user{padding:0 var(--ax-space-20);border-left:1px solid var(--ax-border-neutral-subtleA);align-items:center;display:flex}.aksel-internalheader__button{padding:0 var(--ax-space-12);font:inherit;cursor:pointer;text-align:left;justify-self:center;align-items:center;gap:var(--ax-space-8);border:none;border-left:1px solid var(--ax-border-neutral-subtleA);color:var(--ax-text-neutral);background:none;margin:0;line-height:normal;text-decoration:none;display:flex;position:relative;overflow:visible}.aksel-internalheader__button:hover{background:var(--ax-bg-neutral-moderate-hoverA)}.aksel-internalheader__button[data-active=true]:after{content:"";background-color:var(--ax-border-strong);width:100%;height:6px;position:absolute;bottom:-1px;left:0}@media(forced-colors:active){.aksel-internalheader__button[data-active=true]:after{background-color:highlight}}@media(forced-colors:active){.aksel-internalheader__button:hover{color:highlight;isolation:isolate;background-color:highlighttext;border-color:highlight;outline:1px solid highlight}}:is(.aksel-internalheader__title,.aksel-internalheader__button):focus-visible{outline:3px solid var(--ax-border-focus);outline-offset:-4px}:is(.aksel-internalheader__title,.aksel-internalheader__button):active{background:var(--ax-bg-neutral-moderate-pressedA)}.aksel-internalheader__user-button{padding-left:var(--ax-space-20);gap:var(--ax-space-16)}}@layer aksel.layout;
|
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;
|
|
@@ -3603,32 +3674,25 @@
|
|
|
3603
3674
|
background-color: var(--ax-bg-strong-pressed);
|
|
3604
3675
|
}
|
|
3605
3676
|
|
|
3606
|
-
.aksel-date__field-input
|
|
3607
|
-
|
|
3677
|
+
.aksel-date__field-input {
|
|
3678
|
+
border-right: none;
|
|
3679
|
+
border-top-right-radius: 0;
|
|
3680
|
+
border-bottom-right-radius: 0;
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
.aksel-date__field-input:focus-visible {
|
|
3684
|
+
outline: none;
|
|
3608
3685
|
}
|
|
3609
3686
|
|
|
3610
|
-
.aksel-
|
|
3611
|
-
|
|
3687
|
+
.aksel-date__field--error .aksel-date__field-input:not(:disabled) {
|
|
3688
|
+
box-shadow: inset -2px 0 0 0 var(--ax-border-danger-strong),
|
|
3689
|
+
inset 0 0 0 1px var(--ax-border-danger-strong);
|
|
3612
3690
|
}
|
|
3613
3691
|
|
|
3614
3692
|
.aksel-date__field-button {
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
padding: var(--ax-space-12);
|
|
3619
|
-
background: none;
|
|
3620
|
-
border: none;
|
|
3621
|
-
justify-content: center;
|
|
3622
|
-
align-items: center;
|
|
3623
|
-
height: calc(100% - .125rem);
|
|
3624
|
-
margin: 0;
|
|
3625
|
-
font-size: 1.5rem;
|
|
3626
|
-
text-decoration: none;
|
|
3627
|
-
display: inline-flex;
|
|
3628
|
-
position: absolute;
|
|
3629
|
-
top: 50%;
|
|
3630
|
-
right: .0625rem;
|
|
3631
|
-
transform: translateY(-50%);
|
|
3693
|
+
--__axc-button-border-width: 1px;
|
|
3694
|
+
--__axc-button-border-color: var(--ax-border-neutral);
|
|
3695
|
+
position: relative;
|
|
3632
3696
|
}
|
|
3633
3697
|
|
|
3634
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)) {
|
|
@@ -3646,6 +3710,23 @@
|
|
|
3646
3710
|
border-bottom-right-radius: 0;
|
|
3647
3711
|
}
|
|
3648
3712
|
|
|
3713
|
+
.aksel-date__field-button:focus-visible {
|
|
3714
|
+
outline: 3px solid var(--ax-border-focus);
|
|
3715
|
+
outline-offset: 3px;
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
.aksel-date__field:not(.aksel-date__field--readonly):has(.aksel-date__field-input:not(:disabled)) .aksel-date__field-button:hover {
|
|
3719
|
+
--__axc-button-border-color: var(--ax-border-strong);
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3722
|
+
.aksel-date__field:not(.aksel-date__field--readonly, .aksel-date__field--error):has(.aksel-date__field-input:-webkit-any(:focus-visible, :hover):not(:disabled)) .aksel-date__field-button {
|
|
3723
|
+
--__axc-button-border-color: var(--ax-border-strong);
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
.aksel-date__field:not(.aksel-date__field--readonly, .aksel-date__field--error):has(.aksel-date__field-input:is(:focus-visible, :hover):not(:disabled)) .aksel-date__field-button {
|
|
3727
|
+
--__axc-button-border-color: var(--ax-border-strong);
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3649
3730
|
.aksel-form-field--small .aksel-date__field-button {
|
|
3650
3731
|
padding: var(--ax-space-4);
|
|
3651
3732
|
}
|
|
@@ -3656,19 +3737,36 @@
|
|
|
3656
3737
|
}
|
|
3657
3738
|
|
|
3658
3739
|
.aksel-date__field--readonly .aksel-date__field-button {
|
|
3740
|
+
--__axc-button-border-color: var(--ax-border-neutral-subtleA);
|
|
3659
3741
|
cursor: default;
|
|
3742
|
+
opacity: 1;
|
|
3743
|
+
background-color: var(--ax-bg-neutral-moderate);
|
|
3744
|
+
color: var(--ax-text-neutral-subtle);
|
|
3660
3745
|
}
|
|
3661
3746
|
|
|
3662
|
-
.aksel-date__field-button:
|
|
3663
|
-
|
|
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;
|
|
3664
3757
|
}
|
|
3665
3758
|
|
|
3666
3759
|
.aksel-date__field-wrapper {
|
|
3667
|
-
|
|
3760
|
+
border-radius: var(--ax-radius-8);
|
|
3761
|
+
z-index: 0;
|
|
3668
3762
|
width: -webkit-fit-content;
|
|
3669
3763
|
width: fit-content;
|
|
3670
3764
|
display: inline-flex;
|
|
3671
|
-
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
.aksel-date__field-wrapper:has(.aksel-date__field-input:focus-visible) {
|
|
3768
|
+
outline: 3px solid var(--ax-border-focus);
|
|
3769
|
+
outline-offset: 3px;
|
|
3672
3770
|
}
|
|
3673
3771
|
|
|
3674
3772
|
.aksel-date__week-row {
|
|
@@ -4727,7 +4825,9 @@
|
|
|
4727
4825
|
background: none;
|
|
4728
4826
|
margin: 0;
|
|
4729
4827
|
line-height: normal;
|
|
4828
|
+
text-decoration: none;
|
|
4730
4829
|
display: flex;
|
|
4830
|
+
position: relative;
|
|
4731
4831
|
overflow: visible;
|
|
4732
4832
|
}
|
|
4733
4833
|
|
|
@@ -4735,6 +4835,22 @@
|
|
|
4735
4835
|
background: var(--ax-bg-neutral-moderate-hoverA);
|
|
4736
4836
|
}
|
|
4737
4837
|
|
|
4838
|
+
.aksel-internalheader__button[data-active="true"]:after {
|
|
4839
|
+
content: "";
|
|
4840
|
+
background-color: var(--ax-border-strong);
|
|
4841
|
+
width: 100%;
|
|
4842
|
+
height: 6px;
|
|
4843
|
+
position: absolute;
|
|
4844
|
+
bottom: -1px;
|
|
4845
|
+
left: 0;
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
@media (forced-colors: active) {
|
|
4849
|
+
.aksel-internalheader__button[data-active="true"]:after {
|
|
4850
|
+
background-color: highlight;
|
|
4851
|
+
}
|
|
4852
|
+
}
|
|
4853
|
+
|
|
4738
4854
|
@media (forced-colors: active) {
|
|
4739
4855
|
.aksel-internalheader__button:hover {
|
|
4740
4856
|
color: highlight;
|