@navikt/ds-css 7.37.0 → 7.39.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.
- package/CHANGELOG.md +24 -0
- package/alert.css +19 -7
- package/darkside/alert.darkside.css +19 -8
- package/darkside/dialog.darkside.css +24 -8
- package/darkside/read-more.darkside.css +0 -5
- package/dialog.css +25 -9
- package/dist/component/alert.css +19 -7
- package/dist/component/alert.min.css +1 -1
- package/dist/component/dialog.css +29 -13
- package/dist/component/dialog.min.css +1 -1
- package/dist/component/readmore.css +3 -6
- package/dist/component/readmore.min.css +1 -1
- package/dist/components.css +51 -26
- package/dist/components.min.css +3 -3
- package/dist/darkside/component/alert.css +20 -9
- package/dist/darkside/component/alert.min.css +1 -1
- package/dist/darkside/component/dialog.css +17 -7
- package/dist/darkside/component/dialog.min.css +1 -1
- package/dist/darkside/component/readmore.css +0 -5
- package/dist/darkside/component/readmore.min.css +1 -1
- package/dist/darkside/components.css +37 -21
- package/dist/darkside/components.min.css +1 -1
- package/dist/darkside/global/tokens.css +1 -1
- package/dist/darkside/global/tokens.min.css +1 -1
- package/dist/darkside/index.css +38 -22
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/{7.37.0 → 7.39.0}/component/alert.css +20 -9
- package/dist/darkside/version/7.39.0/component/alert.min.css +1 -0
- package/dist/darkside/version/{7.37.0 → 7.39.0}/component/dialog.css +17 -7
- package/dist/darkside/version/7.39.0/component/dialog.min.css +1 -0
- package/dist/darkside/version/{7.37.0 → 7.39.0}/component/readmore.css +0 -5
- package/dist/darkside/version/{7.37.0 → 7.39.0}/component/readmore.min.css +1 -1
- package/dist/darkside/version/{7.37.0 → 7.39.0}/components.css +37 -21
- package/dist/darkside/version/7.39.0/components.min.css +1 -0
- package/dist/darkside/version/{7.37.0 → 7.39.0}/global/tokens.css +1 -1
- package/dist/darkside/version/{7.37.0 → 7.39.0}/global/tokens.min.css +1 -1
- package/dist/darkside/version/{7.37.0 → 7.39.0}/index.css +38 -22
- package/dist/darkside/version/7.39.0/index.min.css +1 -0
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +52 -27
- package/dist/index.min.css +4 -4
- package/package.json +3 -3
- package/read-more.css +3 -6
- package/dist/darkside/version/7.37.0/component/alert.min.css +0 -1
- package/dist/darkside/version/7.37.0/component/dialog.min.css +0 -1
- package/dist/darkside/version/7.37.0/components.min.css +0 -1
- package/dist/darkside/version/7.37.0/index.min.css +0 -1
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/accordion.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/actionmenu.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/button.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/button.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/chat.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/chat.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/chips.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/copybutton.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/date.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/date.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/dropdown.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/dropdown.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/expansioncard.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/expansioncard.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/form.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/form.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/guidepanel.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/guidepanel.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/helptext.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/inlinemessage.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/inlinemessage.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/internalheader.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/link.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/link.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/linkanchor.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/linkanchor.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/linkcard.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/linkcard.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/linkpanel.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/linkpanel.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/list.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/list.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/loader.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/modal.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/modal.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/pagination.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/panel.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/panel.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/popover.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/popover.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/primitives.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/process.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/process.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/progressbar.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/skeleton.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/stepper.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/table.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/table.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/tabs.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/tag.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/tag.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/theme.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/timeline.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/togglegroup.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/tooltip.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/tooltip.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/component/typography.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/baseline.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/fonts.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/print.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/print.min.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/reset.css +0 -0
- /package/dist/darkside/version/{7.37.0 → 7.39.0}/global/reset.min.css +0 -0
package/dist/components.css
CHANGED
|
@@ -680,16 +680,27 @@
|
|
|
680
680
|
|
|
681
681
|
--__ac-base-alert-pi: var(--a-spacing-5);
|
|
682
682
|
--__ac-base-alert-content-p: var(--a-spacing-3) var(--__ac-base-alert-pi) var(--a-spacing-4) var(--__ac-base-alert-pi);
|
|
683
|
-
--__ac-base-alert-title-pb: var(--a-spacing-05);
|
|
684
683
|
--__ac-base-alert-header-max-width: 37.5rem;
|
|
684
|
+
--__ac-base-alert-header-icon-margin-block-start: var(--a-spacing-2);
|
|
685
|
+
--__ac-base-alert-header-close-button-margin-block-start: var(--a-spacing-1);
|
|
686
|
+
--__ac-global-alert-alignment: max(var(--__ac-base-alert-pi), calc((100% - var(--__ac-base-alert-header-max-width)) / 2));
|
|
685
687
|
}
|
|
686
688
|
|
|
689
|
+
.navds-base-alert[data-centered="false"] {
|
|
690
|
+
--__ac-global-alert-alignment: var(--a-spacing-5);
|
|
691
|
+
}
|
|
692
|
+
|
|
687
693
|
.navds-base-alert[data-size="small"] {
|
|
688
694
|
--__ac-base-alert-pi: var(--a-spacing-4);
|
|
689
695
|
--__ac-base-alert-content-p: var(--a-spacing-2) var(--a-spacing-4) var(--a-spacing-3) var(--a-spacing-4);
|
|
690
|
-
--__ac-base-alert-
|
|
696
|
+
--__ac-base-alert-header-icon-margin-block-start: var(--a-spacing-1-alt);
|
|
697
|
+
--__ac-base-alert-header-close-button-margin-block-start: var(--a-spacing-05);
|
|
691
698
|
}
|
|
692
699
|
|
|
700
|
+
.navds-base-alert[data-size="small"][data-centered="false"] {
|
|
701
|
+
--__ac-global-alert-alignment: var(--a-spacing-4);
|
|
702
|
+
}
|
|
703
|
+
|
|
693
704
|
.navds-base-alert[data-variant="moderate"] {
|
|
694
705
|
outline: 1px solid;
|
|
695
706
|
outline-offset: -1px;
|
|
@@ -838,12 +849,12 @@
|
|
|
838
849
|
display: flex;
|
|
839
850
|
align-items: flex-start;
|
|
840
851
|
gap: var(--a-spacing-2);
|
|
841
|
-
padding:
|
|
852
|
+
padding: 0 var(--__ac-base-alert-pi);
|
|
842
853
|
border-bottom: 1px solid;
|
|
843
854
|
}
|
|
844
855
|
|
|
845
856
|
.navds-base-alert[data-global="true"] .navds-base-alert__header {
|
|
846
|
-
padding-inline:
|
|
857
|
+
padding-inline: var(--__ac-global-alert-alignment);
|
|
847
858
|
}
|
|
848
859
|
|
|
849
860
|
.navds-base-alert[data-variant="strong"] .navds-base-alert__header {
|
|
@@ -856,12 +867,12 @@
|
|
|
856
867
|
|
|
857
868
|
.navds-base-alert__icon {
|
|
858
869
|
font-size: 1.5rem;
|
|
859
|
-
margin-top: var(--
|
|
870
|
+
margin-top: var(--__ac-base-alert-header-icon-margin-block-start);
|
|
860
871
|
display: grid;
|
|
861
872
|
}
|
|
862
873
|
|
|
863
874
|
.navds-base-alert__title {
|
|
864
|
-
padding-block: var(--
|
|
875
|
+
padding-block: var(--a-spacing-1-alt);
|
|
865
876
|
}
|
|
866
877
|
|
|
867
878
|
.navds-base-alert__content {
|
|
@@ -870,11 +881,12 @@
|
|
|
870
881
|
}
|
|
871
882
|
|
|
872
883
|
.navds-base-alert[data-global="true"] .navds-base-alert__content {
|
|
873
|
-
padding-inline:
|
|
884
|
+
padding-inline: var(--__ac-global-alert-alignment);
|
|
874
885
|
}
|
|
875
886
|
|
|
876
887
|
.navds-base-alert__close-button.navds-base-alert__close-button {
|
|
877
888
|
margin-left: auto;
|
|
889
|
+
margin-block-start: var(--__ac-base-alert-header-close-button-margin-block-start);
|
|
878
890
|
|
|
879
891
|
/* Moved focus-outline over wrapper outline */
|
|
880
892
|
z-index: 1;
|
|
@@ -1994,19 +2006,15 @@
|
|
|
1994
2006
|
box-shadow: var(--a-shadow-xlarge);
|
|
1995
2007
|
display: flex;
|
|
1996
2008
|
flex-direction: column;
|
|
1997
|
-
|
|
2009
|
+
border: 1px solid var(--a-border-subtle);
|
|
1998
2010
|
z-index: 2000;
|
|
1999
2011
|
overflow: hidden;
|
|
2000
2012
|
}
|
|
2001
2013
|
|
|
2002
|
-
.
|
|
2014
|
+
.navds-dialog__popup:focus {
|
|
2003
2015
|
outline: none;
|
|
2004
2016
|
}
|
|
2005
2017
|
|
|
2006
|
-
:is(.light:not(:has(.dark)) .navds-dialog__backdrop ~ .navds-dialog__popup):focus {
|
|
2007
|
-
outline: none;
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
2018
|
.navds-dialog__popup[data-size="small"] {
|
|
2011
2019
|
--__ac-dialog-p-b: var(--a-spacing-3);
|
|
2012
2020
|
--__ac-dialog-p-i: var(--a-spacing-4);
|
|
@@ -2087,6 +2095,7 @@
|
|
|
2087
2095
|
height: auto;
|
|
2088
2096
|
border-bottom-left-radius: 0;
|
|
2089
2097
|
border-bottom-right-radius: 0;
|
|
2098
|
+
border-bottom: 0;
|
|
2090
2099
|
left: 0;
|
|
2091
2100
|
right: 0;
|
|
2092
2101
|
bottom: 0;
|
|
@@ -2112,6 +2121,7 @@
|
|
|
2112
2121
|
|
|
2113
2122
|
border-top-right-radius: 0;
|
|
2114
2123
|
border-bottom-right-radius: 0;
|
|
2124
|
+
border-right: 0;
|
|
2115
2125
|
right: 0;
|
|
2116
2126
|
}
|
|
2117
2127
|
|
|
@@ -2120,6 +2130,7 @@
|
|
|
2120
2130
|
|
|
2121
2131
|
border-top-left-radius: 0;
|
|
2122
2132
|
border-bottom-left-radius: 0;
|
|
2133
|
+
border-left: 0;
|
|
2123
2134
|
left: 0;
|
|
2124
2135
|
}
|
|
2125
2136
|
|
|
@@ -2128,6 +2139,7 @@
|
|
|
2128
2139
|
|
|
2129
2140
|
border-bottom-left-radius: 0;
|
|
2130
2141
|
border-bottom-right-radius: 0;
|
|
2142
|
+
border-bottom: 0;
|
|
2131
2143
|
left: 0;
|
|
2132
2144
|
right: 0;
|
|
2133
2145
|
bottom: 0;
|
|
@@ -2146,6 +2158,7 @@
|
|
|
2146
2158
|
--__ac-dialog-transform: scale(0.98);
|
|
2147
2159
|
|
|
2148
2160
|
border-radius: 0;
|
|
2161
|
+
border: 0;
|
|
2149
2162
|
inset: 0;
|
|
2150
2163
|
max-height: 100dvh;
|
|
2151
2164
|
max-width: 100dvw;
|
|
@@ -2159,7 +2172,7 @@
|
|
|
2159
2172
|
inset: 0;
|
|
2160
2173
|
background-color: var(--a-surface-backdrop);
|
|
2161
2174
|
transition: opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2162
|
-
z-index:
|
|
2175
|
+
z-index: 2000;
|
|
2163
2176
|
|
|
2164
2177
|
/* iOS 26+: Ensure the backdrop covers the entire visible viewport. */
|
|
2165
2178
|
}
|
|
@@ -2189,18 +2202,33 @@
|
|
|
2189
2202
|
float: right;
|
|
2190
2203
|
}
|
|
2191
2204
|
|
|
2205
|
+
.navds-dialog__header ~ .navds-dialog__body {
|
|
2206
|
+
padding-block-start: 0;
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2192
2209
|
.navds-dialog__body {
|
|
2193
|
-
|
|
2210
|
+
|
|
2211
|
+
background:
|
|
2212
|
+
linear-gradient(var(--a-surface-default) 30%, transparent) top,
|
|
2213
|
+
linear-gradient(transparent, var(--a-surface-default) 60%) bottom,
|
|
2214
|
+
radial-gradient(farthest-side at 50% 0, rgba(0 0 0 / 0.3), transparent) top,
|
|
2215
|
+
radial-gradient(farthest-side at 50% 100%, rgba(0 0 0 / 0.3), transparent) bottom;
|
|
2216
|
+
background-size:
|
|
2217
|
+
100% 40px,
|
|
2218
|
+
100% 50px,
|
|
2219
|
+
100% 16px,
|
|
2220
|
+
100% 16px;
|
|
2221
|
+
background-attachment: local, local, scroll, scroll;
|
|
2222
|
+
background-repeat: no-repeat;
|
|
2194
2223
|
padding-block: var(--__ac-dialog-p-b);
|
|
2195
2224
|
padding-inline: var(--__ac-dialog-p-i);
|
|
2225
|
+
overflow: auto;
|
|
2226
|
+
overscroll-behavior: contain;
|
|
2227
|
+
position: relative; /* Needed to make sr-only elements position correctly - see Storybook */
|
|
2196
2228
|
}
|
|
2197
2229
|
|
|
2198
|
-
.navds-dialog__header ~ .navds-dialog__body {
|
|
2199
|
-
padding-block-start: 0;
|
|
2200
|
-
}
|
|
2201
|
-
|
|
2202
2230
|
.navds-dialog__footer {
|
|
2203
|
-
justify-content: flex-
|
|
2231
|
+
justify-content: flex-end;
|
|
2204
2232
|
display: flex;
|
|
2205
2233
|
flex-flow: wrap;
|
|
2206
2234
|
gap: var(--a-spacing-2);
|
|
@@ -7490,8 +7518,7 @@ span.rdp-weeknumber {
|
|
|
7490
7518
|
color: ButtonText;
|
|
7491
7519
|
}
|
|
7492
7520
|
|
|
7493
|
-
.navds-read-more__button.navds-read-more__button:focus-visible
|
|
7494
|
-
.navds-read-more__content.navds-read-more__content:focus-visible {
|
|
7521
|
+
.navds-read-more__button.navds-read-more__button:focus-visible {
|
|
7495
7522
|
box-shadow: none;
|
|
7496
7523
|
outline: 2px solid highlight;
|
|
7497
7524
|
outline-offset: 2px;
|
|
@@ -7507,15 +7534,13 @@ span.rdp-weeknumber {
|
|
|
7507
7534
|
background-color: var(--ac-read-more-active-bg, var(--a-surface-active));
|
|
7508
7535
|
}
|
|
7509
7536
|
|
|
7510
|
-
.navds-read-more__button:focus-visible
|
|
7511
|
-
.navds-read-more__content:focus-visible {
|
|
7537
|
+
.navds-read-more__button:focus-visible {
|
|
7512
7538
|
outline: none;
|
|
7513
7539
|
box-shadow: var(--a-shadow-focus);
|
|
7514
7540
|
}
|
|
7515
7541
|
|
|
7516
7542
|
@supports not selector(:focus-visible) {
|
|
7517
|
-
.navds-read-more__button:focus
|
|
7518
|
-
.navds-read-more__content:focus {
|
|
7543
|
+
.navds-read-more__button:focus {
|
|
7519
7544
|
outline: none;
|
|
7520
7545
|
box-shadow: var(--a-shadow-focus);
|
|
7521
7546
|
}
|