@norges-domstoler/dds-components 21.3.0 → 21.3.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/dist/index.css +75 -73
- package/dist/index.css.map +1 -1
- package/dist/index.js +5 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.css
CHANGED
|
@@ -1947,13 +1947,10 @@
|
|
|
1947
1947
|
background-color: var(--dds-color-surface-default);
|
|
1948
1948
|
border-color: var(--dds-color-border-subtle);
|
|
1949
1949
|
}
|
|
1950
|
-
.Card_container--navigation,
|
|
1951
|
-
.Card_container--selection-control:
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
border-color: var(--dds-color-border-action-hover);
|
|
1955
|
-
box-shadow: inset 0 0 0 1px var(--dds-color-border-action-hover);
|
|
1956
|
-
}
|
|
1950
|
+
.Card_container--navigation:hover,
|
|
1951
|
+
.Card_container--selection-control:has(input:enabled:not([aria-readonly])):hover {
|
|
1952
|
+
border-color: var(--dds-color-border-action-hover);
|
|
1953
|
+
box-shadow: inset 0 0 0 1px var(--dds-color-border-action-hover);
|
|
1957
1954
|
}
|
|
1958
1955
|
.Card_container--selection-control {
|
|
1959
1956
|
padding: var(--dds-selection-control-card-padding);
|
|
@@ -1963,26 +1960,29 @@
|
|
|
1963
1960
|
& > span {
|
|
1964
1961
|
left: var(--dds-selection-control-card-control-left);
|
|
1965
1962
|
top: var(--dds-selection-control-card-control-top);
|
|
1966
|
-
|
|
1967
|
-
|
|
1963
|
+
}
|
|
1964
|
+
input:disabled,
|
|
1965
|
+
input[aria-readonly] {
|
|
1966
|
+
& ~ span {
|
|
1967
|
+
background-color: var(--dds-color-surface-field-disabled);
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
&:has(input:checked) {
|
|
1971
1971
|
border-color: var(--dds-color-surface-action-selected);
|
|
1972
1972
|
box-shadow: inset 0 0 0 1px var(--dds-color-surface-action-selected);
|
|
1973
|
+
background-color: var(--dds-color-surface-selected-default);
|
|
1974
|
+
}
|
|
1975
|
+
&:has(input[aria-invalid]) {
|
|
1976
|
+
border-color: var(--dds-color-border-danger);
|
|
1977
|
+
box-shadow: inset 0 0 0 1px var(--dds-color-border-danger);
|
|
1978
|
+
}
|
|
1979
|
+
&:has(input:disabled),
|
|
1980
|
+
&:has(input[aria-readonly]) {
|
|
1981
|
+
box-shadow: none;
|
|
1982
|
+
background-color: var(--dds-color-surface-selected-default);
|
|
1983
|
+
background-color: var(--dds-color-surface-field-disabled);
|
|
1984
|
+
border-color: var(--dds-color-surface-field-disabled);
|
|
1973
1985
|
}
|
|
1974
|
-
}
|
|
1975
|
-
.Card_container--selection-control--error {
|
|
1976
|
-
border-color: var(--dds-color-border-danger);
|
|
1977
|
-
box-shadow: 0 0 0 1px var(--dds-color-border-danger);
|
|
1978
|
-
}
|
|
1979
|
-
.Card_container--selection-control--disabled {
|
|
1980
|
-
background-color: var(--dds-color-surface-field-disabled);
|
|
1981
|
-
border-color: var(--dds-color-surface-field-disabled);
|
|
1982
|
-
}
|
|
1983
|
-
.Card_container--selection-control--readonly {
|
|
1984
|
-
background-color: var(--dds-color-surface-field-disabled);
|
|
1985
|
-
border-color: var(--dds-color-surface-field-disabled);
|
|
1986
1986
|
}
|
|
1987
1987
|
.Card_container--navigation {
|
|
1988
1988
|
text-decoration: none;
|
|
@@ -2046,40 +2046,46 @@
|
|
|
2046
2046
|
-webkit-user-select: none;
|
|
2047
2047
|
-moz-user-select: none;
|
|
2048
2048
|
user-select: none;
|
|
2049
|
-
input ~ .SelectionControl_selection-control {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2049
|
+
&:not(:hover) input[aria-invalid]:enabled:not([aria-readonly]):not(:focus-visible):not(:checked) ~ .SelectionControl_selection-control {
|
|
2050
|
+
background-color: var(--dds-color-surface-danger-default);
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
.SelectionControl_label:has(input:enabled) {
|
|
2054
|
+
input[aria-invalid]:not([aria-readonly]):not(:focus-visible) ~ .SelectionControl_selection-control {
|
|
2055
|
+
border-color: var(--dds-color-border-danger);
|
|
2056
|
+
box-shadow: inset 0 0 0 1px var(--dds-color-border-danger);
|
|
2057
2057
|
}
|
|
2058
|
-
&:hover
|
|
2058
|
+
&:hover input:not(:checked):not([aria-readonly]) ~ .SelectionControl_selection-control {
|
|
2059
2059
|
background-color: var(--dds-color-surface-hover-default);
|
|
2060
2060
|
box-shadow: inset 0 0 0 1px var(--dds-color-border-action-hover);
|
|
2061
2061
|
border-color: var(--dds-color-border-action-hover);
|
|
2062
2062
|
}
|
|
2063
|
-
input:checked
|
|
2064
|
-
input
|
|
2063
|
+
input:checked ~ .SelectionControl_selection-control,
|
|
2064
|
+
input[data-indeterminate] ~ .SelectionControl_selection-control {
|
|
2065
2065
|
border-color: var(--dds-color-surface-action-selected);
|
|
2066
2066
|
background-color: var(--dds-color-surface-action-selected);
|
|
2067
2067
|
}
|
|
2068
|
-
|
|
2069
|
-
|
|
2068
|
+
input:checked[aria-readonly] ~ .SelectionControl_selection-control,
|
|
2069
|
+
input[data-indeterminate][aria-readonly] ~ .SelectionControl_selection-control {
|
|
2070
2070
|
border-color: var(--dds-color-surface-action-selected-disabled);
|
|
2071
2071
|
background-color: var(--dds-color-surface-action-selected-disabled);
|
|
2072
2072
|
}
|
|
2073
|
-
&:hover
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2073
|
+
&:hover {
|
|
2074
|
+
input:enabled:not([aria-readonly]) {
|
|
2075
|
+
&:checked[type=checkbox],
|
|
2076
|
+
&[data-indeterminate] {
|
|
2077
|
+
~ .SelectionControl_selection-control {
|
|
2078
|
+
background-color: var(--dds-color-surface-action-hover);
|
|
2079
|
+
border-color: var(--dds-color-surface-action-hover);
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2081
2083
|
}
|
|
2082
2084
|
}
|
|
2085
|
+
input:checked ~ .SelectionControl_selection-control:after,
|
|
2086
|
+
input[data-indeterminate] ~ .SelectionControl_selection-control:after {
|
|
2087
|
+
display: block;
|
|
2088
|
+
}
|
|
2083
2089
|
.SelectionControl_label--checkbox {
|
|
2084
2090
|
.SelectionControl_selection-control:after {
|
|
2085
2091
|
border: solid var(--dds-color-icon-on-action);
|
|
@@ -2090,7 +2096,7 @@
|
|
|
2090
2096
|
height: 10px;
|
|
2091
2097
|
transform: rotate(45deg);
|
|
2092
2098
|
}
|
|
2093
|
-
input[data-indeterminate
|
|
2099
|
+
input[data-indeterminate] ~ .SelectionControl_selection-control:after {
|
|
2094
2100
|
border-width: 1px 0 0 0;
|
|
2095
2101
|
left: 25%;
|
|
2096
2102
|
top: 50%;
|
|
@@ -2110,40 +2116,28 @@
|
|
|
2110
2116
|
transform: translate(-50%, -50%);
|
|
2111
2117
|
}
|
|
2112
2118
|
}
|
|
2113
|
-
.SelectionControl_label
|
|
2119
|
+
.SelectionControl_label:has(input:disabled) {
|
|
2114
2120
|
cursor: not-allowed;
|
|
2115
|
-
input:disabled ~ .SelectionControl_selection-control {
|
|
2116
|
-
border-color: var(--dds-color-border-subtle);
|
|
2117
|
-
}
|
|
2118
|
-
input:checked:disabled ~ .SelectionControl_selection-control,
|
|
2119
|
-
input:disabled[data-indeterminate=true] ~ .SelectionControl_selection-control {
|
|
2120
|
-
border-color: var(--dds-color-surface-action-selected-disabled);
|
|
2121
|
-
background-color: var(--dds-color-surface-action-selected-disabled);
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
.SelectionControl_label--readonly {
|
|
2125
|
-
cursor: default;
|
|
2126
|
-
color: var(--dds-color-text-medium);
|
|
2127
2121
|
input ~ .SelectionControl_selection-control {
|
|
2128
|
-
border-color: var(--dds-color-border-
|
|
2129
|
-
background-color: var(--dds-color-surface-field-disabled);
|
|
2122
|
+
border-color: var(--dds-color-border-subtle);
|
|
2130
2123
|
}
|
|
2131
2124
|
input:checked ~ .SelectionControl_selection-control,
|
|
2132
|
-
input[data-indeterminate
|
|
2125
|
+
input[data-indeterminate] ~ .SelectionControl_selection-control {
|
|
2133
2126
|
border-color: var(--dds-color-surface-action-selected-disabled);
|
|
2134
2127
|
background-color: var(--dds-color-surface-action-selected-disabled);
|
|
2135
2128
|
}
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2129
|
+
.SelectionControl_label:has(input[aria-readonly]) {
|
|
2130
|
+
cursor: default;
|
|
2131
|
+
color: var(--dds-color-text-medium);
|
|
2132
|
+
input ~ .SelectionControl_selection-control {
|
|
2133
|
+
border-color: var(--dds-color-border-default);
|
|
2134
|
+
background-color: var(--dds-color-surface-field-disabled);
|
|
2135
|
+
}
|
|
2136
|
+
input:checked ~ .SelectionControl_selection-control,
|
|
2137
|
+
input[data-indeterminate] ~ .SelectionControl_selection-control {
|
|
2138
|
+
border-color: var(--dds-color-surface-action-selected-disabled);
|
|
2139
|
+
background-color: var(--dds-color-surface-action-selected-disabled);
|
|
2140
|
+
}
|
|
2147
2141
|
}
|
|
2148
2142
|
}
|
|
2149
2143
|
.SelectionControl_label--no-text {
|
|
@@ -2157,14 +2151,22 @@
|
|
|
2157
2151
|
border-color: var(--dds-color-border-default);
|
|
2158
2152
|
background-color: var(--dds-color-surface-field-default);
|
|
2159
2153
|
border-radius: var(--dds-border-radius-input);
|
|
2160
|
-
height:
|
|
2161
|
-
width:
|
|
2154
|
+
height: var(--dds-selection-control-height);
|
|
2155
|
+
width: var(--dds-selection-control-height);
|
|
2162
2156
|
&:after {
|
|
2163
2157
|
content: "";
|
|
2164
2158
|
position: absolute;
|
|
2165
2159
|
display: none;
|
|
2166
2160
|
box-sizing: border-box;
|
|
2167
2161
|
}
|
|
2162
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
2163
|
+
transition:
|
|
2164
|
+
box-shadow 0.2s,
|
|
2165
|
+
background-color 0.2s,
|
|
2166
|
+
border 0.2s,
|
|
2167
|
+
border-color 0.2s,
|
|
2168
|
+
var(--dds-focus-transition);
|
|
2169
|
+
}
|
|
2168
2170
|
}
|
|
2169
2171
|
.SelectionControl_selection-control--radio {
|
|
2170
2172
|
border-radius: var(--dds-border-radius-rounded);
|
|
@@ -3546,7 +3548,7 @@ select:hover {
|
|
|
3546
3548
|
}
|
|
3547
3549
|
.SplitButton_option--primary,
|
|
3548
3550
|
.SplitButton_option--primary:hover {
|
|
3549
|
-
border-left: 1px solid var(--dds-color-border-on-action);
|
|
3551
|
+
border-left: 1px solid var(--dds-color-border-on-action) !important;
|
|
3550
3552
|
}
|
|
3551
3553
|
|
|
3552
3554
|
/* src/components/Table/normal/Table.module.css */
|