@norges-domstoler/dds-components 21.6.0 → 21.7.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/dist/index.css CHANGED
@@ -637,6 +637,7 @@
637
637
  /* src/components/helpers/styling/focus.module.css */
638
638
  .focus_focused,
639
639
  .focus_focusable:focus-visible,
640
+ .focus_focusable-focus:focus,
640
641
  .focus_focusable-within:focus-within,
641
642
  .focus_has-focusable-input:has(input:focus-visible),
642
643
  .focus_focusable-sibling:focus-visible + .focus_focus-styled-sibling {
@@ -2765,6 +2766,23 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2765
2766
  padding-bottom: var(--dds-spacing-x0-5);
2766
2767
  }
2767
2768
 
2769
+ /* src/components/helpers/InlineIconButton/InlineIconButton.module.css */
2770
+ .InlineIconButton_button {
2771
+ display: inline-flex;
2772
+ border-radius: var(--dds-border-radius-button);
2773
+ color: var(--dds-color-icon-default);
2774
+ &:hover {
2775
+ background-color: var(--dds-color-surface-hover-default);
2776
+ color: var(--dds-color-icon-action-hover);
2777
+ }
2778
+ @media (prefers-reduced-motion: no-preference) {
2779
+ transition:
2780
+ background-color 0.2s,
2781
+ color 0.2s,
2782
+ var(--dds-focus-transition);
2783
+ }
2784
+ }
2785
+
2768
2786
  /* src/components/Tooltip/Tooltip.module.css */
2769
2787
  .Tooltip_container {
2770
2788
  width: -moz-fit-content;
@@ -2913,6 +2931,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2913
2931
  .InlineEdit_inline-input {
2914
2932
  width: 100%;
2915
2933
  padding: var(--dds-spacing-x0-25);
2934
+ border-width: 1px;
2916
2935
  border-color: transparent;
2917
2936
  background-color: transparent;
2918
2937
  border-radius: var(--dds-border-radius-input);
@@ -2922,20 +2941,36 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2922
2941
  border-color 0.2s,
2923
2942
  var(--dds-focus-transition);
2924
2943
  }
2925
- &:hover:enabled:-moz-read-write:not(:focus) {
2926
- border-color: transparent;
2927
- box-shadow: none;
2928
- background-color: var(--dds-color-surface-hover-default);
2929
- }
2930
- &:hover:enabled:read-write:not(:focus) {
2931
- border-color: transparent;
2932
- box-shadow: none;
2933
- background-color: var(--dds-color-surface-hover-default);
2934
- }
2935
2944
  &:focus {
2936
2945
  background-color: var(--dds-color-surface-default);
2937
2946
  }
2938
2947
  }
2948
+ .InlineEdit_inline-select {
2949
+ -webkit-appearance: none;
2950
+ -moz-appearance: none;
2951
+ appearance: none;
2952
+ text-overflow: ellipsis;
2953
+ width: 100%;
2954
+ padding-right: var(--dds-spacing-x1-5);
2955
+ }
2956
+ .InlineEdit_inline-select--with-clear-button {
2957
+ padding-right: var(--dds-spacing-x3);
2958
+ }
2959
+ .InlineEdit_inline-input:hover:enabled:-moz-read-write:not(:focus) {
2960
+ border-color: transparent;
2961
+ box-shadow: none;
2962
+ background-color: var(--dds-color-surface-hover-default);
2963
+ }
2964
+ .InlineEdit_inline-input:hover:enabled:read-write:not(:focus),
2965
+ .InlineEdit_inline-select:hover:enabled:not(:focus) {
2966
+ border-color: transparent;
2967
+ box-shadow: none;
2968
+ background-color: var(--dds-color-surface-hover-default);
2969
+ }
2970
+ .InlineEdit_inline-input--danger {
2971
+ border-color: var(--dds-color-border-danger);
2972
+ box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2973
+ }
2939
2974
  .InlineEdit_inline-input--with-icon {
2940
2975
  padding-left: var(--dds-spacing-x2);
2941
2976
  }
@@ -2951,6 +2986,17 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2951
2986
  cursor: text;
2952
2987
  }
2953
2988
  }
2989
+ .InlineEdit_chevron {
2990
+ position: absolute;
2991
+ right: var(--dds-spacing-x0-25);
2992
+ transform: translateY(50%);
2993
+ pointer-events: none;
2994
+ }
2995
+ .InlineEdit_clear-button {
2996
+ position: absolute;
2997
+ right: calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-small));
2998
+ transform: translateY(50%);
2999
+ }
2954
3000
 
2955
3001
  /* src/components/InternalHeader/InternalHeader.module.css */
2956
3002
  .InternalHeader_bar {
@@ -3574,8 +3620,6 @@ select:hover {
3574
3620
  top: 50%;
3575
3621
  transform: translate(0, -50%);
3576
3622
  right: var(--dds-spacing-x1);
3577
- width: var(--dds-icon-size-medium);
3578
- height: var(--dds-icon-size-medium);
3579
3623
  }
3580
3624
  .Search_suggestions {
3581
3625
  z-index: var(--dds-zindex-dropdown);