@navikt/ds-css 5.15.1 → 5.16.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 +6 -0
- package/dist/component/form.css +49 -19
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +50 -20
- package/dist/component/index.min.css +1 -1
- package/dist/components.css +55 -19
- package/dist/components.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +50 -20
- package/dist/index.min.css +1 -1
- package/form/combobox.css +55 -19
- package/package.json +2 -2
- package/tokens.json +2 -0
package/dist/global/tokens.css
CHANGED
package/dist/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Tue, 30 Jan 2024 14:09:15 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-1-alt: 0.375rem;
|
|
@@ -3729,7 +3729,6 @@ body,
|
|
|
3729
3729
|
width: 100%;
|
|
3730
3730
|
}
|
|
3731
3731
|
.navds-combobox__input {
|
|
3732
|
-
z-index: 1;
|
|
3733
3732
|
flex: 1;
|
|
3734
3733
|
border: none;
|
|
3735
3734
|
padding: 0;
|
|
@@ -3847,27 +3846,23 @@ body,
|
|
|
3847
3846
|
width: 1.25rem;
|
|
3848
3847
|
height: 1.25rem;
|
|
3849
3848
|
}
|
|
3850
|
-
/* dropdown
|
|
3849
|
+
/* dropdown & non selectable dropdown items */
|
|
3851
3850
|
.navds-combobox__list {
|
|
3852
3851
|
max-height: 290px;
|
|
3853
3852
|
overflow-y: auto;
|
|
3854
3853
|
position: absolute;
|
|
3855
3854
|
left: 0;
|
|
3856
3855
|
right: 0;
|
|
3857
|
-
z-index:
|
|
3856
|
+
z-index: var(--a-z-index-popover);
|
|
3858
3857
|
top: calc(100% + var(--a-spacing-2));
|
|
3859
|
-
list-style: none;
|
|
3860
|
-
margin: 0;
|
|
3861
3858
|
border: 1px solid var(--ac-combobox-list-border-color, var(--a-border-divider));
|
|
3862
3859
|
display: flex;
|
|
3863
3860
|
flex-direction: column;
|
|
3864
|
-
align-items: flex-start;
|
|
3865
|
-
padding: 0;
|
|
3866
3861
|
box-shadow: var(--a-shadow-small);
|
|
3867
3862
|
border-radius: var(--a-border-radius-medium);
|
|
3868
|
-
gap: var(--a-spacing-1) 0;
|
|
3869
3863
|
background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
|
|
3870
3864
|
color: var(--ac-combobox-list-text, var(--a-text-default));
|
|
3865
|
+
gap: var(--a-spacing-1) 0;
|
|
3871
3866
|
}
|
|
3872
3867
|
.navds-combobox__list--closed {
|
|
3873
3868
|
display: none;
|
|
@@ -3876,31 +3871,62 @@ body,
|
|
|
3876
3871
|
height: 1.5rem;
|
|
3877
3872
|
width: 1.5rem;
|
|
3878
3873
|
}
|
|
3874
|
+
.navds-combobox__list_non-selectables {
|
|
3875
|
+
position: sticky;
|
|
3876
|
+
top: 0;
|
|
3877
|
+
left: 0;
|
|
3878
|
+
right: 0;
|
|
3879
|
+
z-index: 1;
|
|
3880
|
+
}
|
|
3879
3881
|
.navds-combobox__list-item,
|
|
3880
|
-
.navds-combobox__list-
|
|
3881
|
-
.navds-combobox__list-
|
|
3882
|
+
.navds-combobox__list-item--loading,
|
|
3883
|
+
.navds-combobox__list-item--no-options,
|
|
3884
|
+
.navds-combobox__list-item--new-option,
|
|
3885
|
+
.navds-combobox__list-item--max-selected {
|
|
3882
3886
|
display: flex;
|
|
3883
3887
|
flex-direction: row;
|
|
3884
3888
|
justify-content: space-between;
|
|
3885
|
-
align-items: center;
|
|
3886
3889
|
padding: var(--a-spacing-3);
|
|
3887
3890
|
width: 100%;
|
|
3888
3891
|
background-color: var(--ac-combobox-list-item-bg, var(--a-surface-default));
|
|
3892
|
+
scroll-margin-top: 50px;
|
|
3889
3893
|
}
|
|
3890
3894
|
.navds-form-field--small .navds-combobox__list-item,
|
|
3891
|
-
.navds-form-field--small .navds-combobox__list-
|
|
3892
|
-
.navds-form-field--small .navds-combobox__list-
|
|
3895
|
+
.navds-form-field--small .navds-combobox__list-item--loading,
|
|
3896
|
+
.navds-form-field--small .navds-combobox__list-item--no-options,
|
|
3897
|
+
.navds-form-field--small .navds-combobox__list-item--new-option,
|
|
3898
|
+
.navds-form-field--small .navds-combobox__list-item--max-selected {
|
|
3893
3899
|
padding: calc(var(--a-spacing-3) / 2) var(--a-spacing-2);
|
|
3894
3900
|
}
|
|
3895
3901
|
.navds-combobox__list-item--loading {
|
|
3896
|
-
display: flex;
|
|
3897
3902
|
justify-content: center;
|
|
3898
|
-
padding: var(--a-spacing-3);
|
|
3899
3903
|
background-color: var(--ac-combobox-list-item-loading-bg, var(--a-surface-default));
|
|
3904
|
+
}
|
|
3905
|
+
.navds-combobox__list-item--max-selected {
|
|
3906
|
+
background: var(--ac-combobox-list-item-max-selected-bg, var(--a-surface-info-subtle));
|
|
3907
|
+
border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
|
|
3908
|
+
border-start-end-radius: calc(var(--a-border-radius-medium) - 1px);
|
|
3909
|
+
border: 1px solid var(--ac-combobox-list-item-max-selected-border, var(--a-border-info));
|
|
3910
|
+
margin-bottom: calc(var(--a-spacing-1) * -1);
|
|
3911
|
+
}
|
|
3912
|
+
.navds-combobox__list_non-selectables:hover {
|
|
3913
|
+
cursor: default;
|
|
3914
|
+
}
|
|
3915
|
+
/* ul-list and selectable li-items */
|
|
3916
|
+
.navds-combobox__list-options {
|
|
3917
|
+
list-style: none;
|
|
3918
|
+
margin: 0;
|
|
3919
|
+
padding: 0;
|
|
3900
3920
|
width: 100%;
|
|
3921
|
+
display: inherit;
|
|
3922
|
+
flex-direction: inherit;
|
|
3923
|
+
gap: inherit;
|
|
3924
|
+
background-color: inherit;
|
|
3925
|
+
align-items: flex-start;
|
|
3901
3926
|
}
|
|
3902
3927
|
.navds-combobox__list-item--focus,
|
|
3903
|
-
.navds-combobox__list--with-hover
|
|
3928
|
+
.navds-combobox__list--with-hover
|
|
3929
|
+
.navds-combobox__list-item:not([data-no-focus="true"], .navds-combobox__list-item--new-option):hover {
|
|
3904
3930
|
background-color: var(--ac-combobox-list-item-hover-bg, var(--a-surface-hover));
|
|
3905
3931
|
cursor: pointer;
|
|
3906
3932
|
border-left: 4px solid var(--ac-combobox-list-item-hover-border-left, var(--a-border-strong));
|
|
@@ -3910,6 +3936,10 @@ body,
|
|
|
3910
3936
|
.navds-combobox__list--with-hover .navds-form-field--small .navds-combobox__list-item:hover {
|
|
3911
3937
|
padding-left: calc(var(--a-spacing-2) - 4px);
|
|
3912
3938
|
}
|
|
3939
|
+
.navds-combobox__list-item[data-no-focus="true"] {
|
|
3940
|
+
cursor: not-allowed;
|
|
3941
|
+
opacity: 0.4;
|
|
3942
|
+
}
|
|
3913
3943
|
.navds-combobox__list-item--selected {
|
|
3914
3944
|
background-color: var(--ac-combobox-list-item-selected-bg, var(--a-surface-selected));
|
|
3915
3945
|
}
|
|
@@ -3922,18 +3952,18 @@ body,
|
|
|
3922
3952
|
border-left: 4px solid var(--ac-combobox-list-item-selected-hover-border-left, var(--a-border-focus));
|
|
3923
3953
|
padding-left: calc(var(--a-spacing-3) - 4px);
|
|
3924
3954
|
}
|
|
3925
|
-
.navds-combobox__list-
|
|
3955
|
+
.navds-combobox__list-item--new-option {
|
|
3926
3956
|
border-bottom: 1px solid var(--a-border-divider);
|
|
3927
3957
|
background: var(--a-surface-neutral-subtle);
|
|
3928
3958
|
cursor: pointer;
|
|
3929
3959
|
justify-content: flex-start;
|
|
3930
3960
|
gap: 0.25rem;
|
|
3931
3961
|
}
|
|
3932
|
-
.navds-combobox__list--with-hover .navds-combobox__list-
|
|
3962
|
+
.navds-combobox__list--with-hover .navds-combobox__list-item--new-option:hover {
|
|
3933
3963
|
border-bottom: 1px solid var(--a-border-divider);
|
|
3934
3964
|
background: var(--a-surface-neutral-subtle-hover);
|
|
3935
3965
|
}
|
|
3936
|
-
.navds-combobox__list-
|
|
3966
|
+
.navds-combobox__list-item--new-option--focus {
|
|
3937
3967
|
box-shadow:
|
|
3938
3968
|
var(--a-shadow-focus) inset,
|
|
3939
3969
|
var(--a-border-action) 0 0 0 5px inset;
|