@fkui/design 6.37.0 → 6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/design",
3
- "version": "6.37.0",
3
+ "version": "6.39.0",
4
4
  "description": "fkui design",
5
5
  "keywords": [
6
6
  "fkui",
@@ -39,19 +39,19 @@
39
39
  "unit:watch": "node --test --watch"
40
40
  },
41
41
  "devDependencies": {
42
- "@fkui/icon-lib-default": "6.37.0",
43
- "@fkui/theme-default": "6.37.0",
44
- "autoprefixer": "10.4.24",
45
- "cssnano": "7.1.2",
42
+ "@fkui/icon-lib-default": "6.39.0",
43
+ "@fkui/theme-default": "6.39.0",
44
+ "autoprefixer": "10.4.27",
45
+ "cssnano": "7.1.3",
46
46
  "glob": "13.0.6",
47
47
  "picocolors": "1.1.1",
48
- "postcss": "8.5.6",
48
+ "postcss": "8.5.8",
49
49
  "postcss-url": "10.1.3",
50
50
  "postcss-var-func-fallback": "3.0.1",
51
- "svgo": "4.0.0"
51
+ "svgo": "4.0.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@fkui/theme-default": "^6.37.0",
54
+ "@fkui/theme-default": "^6.39.0",
55
55
  "sass": "^1.40.0",
56
56
  "stylelint": ">= 14"
57
57
  },
@@ -68,5 +68,5 @@
68
68
  "npm": ">= 7"
69
69
  },
70
70
  "sass": "./src/fkui.scss",
71
- "gitHead": "15bcc047ba64657946b3e429cbf68abae064ebcc"
71
+ "gitHead": "dcb4ae0482dae1d80806b45900c8b80771de7372"
72
72
  }
@@ -241,6 +241,7 @@ $button--tertiary: (
241
241
  font-weight: var(--f-font-weight-bold);
242
242
  outline-offset: size.$padding-025;
243
243
  line-height: calc(1.25 * var(--f-font-size-standard));
244
+ align-items: flex-start;
244
245
 
245
246
  @include core.make-button-variant(".button", $button--discrete...);
246
247
 
@@ -268,6 +269,9 @@ $button--tertiary: (
268
269
  &:hover {
269
270
  border-radius: var(--f-button-discrete-radius-hover);
270
271
  }
272
+ & > .button__icon {
273
+ flex-shrink: 0;
274
+ }
271
275
  }
272
276
 
273
277
  &.button--discrete-inverted {
@@ -88,6 +88,7 @@ $checkbox_label_offset: 0.1rem;
88
88
  }
89
89
 
90
90
  .checkbox__label {
91
+ color: $checkbox-color-text-disabled;
91
92
  cursor: default;
92
93
 
93
94
  &::before {
@@ -22,6 +22,7 @@
22
22
  display: flex;
23
23
  align-items: center;
24
24
  padding: size.$padding-075;
25
+ margin: size.$margin-050 0;
25
26
 
26
27
  a,
27
28
  a:visited,
@@ -1,6 +1,6 @@
1
1
  // HEADING
2
- $expandablepanel-heading-color-background-default: var(--fkds-color-background-secondary) !default;
3
- $expandablepanel-heading-color-background-hover: var(--fkds-color-action-background-secondary-hover) !default;
2
+ $expandablepanel-heading-color-background-default: var(--fkds-color-interactive-surface-background-primary-default) !default;
3
+ $expandablepanel-heading-color-background-hover: var(--fkds-color-interactive-surface-background-primary-hover) !default;
4
4
  $expandablepanel-heading-color-text-default: var(--fkds-color-text-primary) !default;
5
5
  $expandablepanel-heading-color-border: var(--fkds-color-border-primary) !default;
6
6
  $expandablepanel-heading-notification-color-background: var(--fkds-color-feedback-background-negative-strong) !default;
@@ -0,0 +1,170 @@
1
+ @use "./icon";
2
+ @use "variables" as *;
3
+
4
+ @at-root {
5
+ %icon-stack {
6
+ @extend %icon--base;
7
+
8
+ position: relative;
9
+
10
+ .icon {
11
+ position: absolute;
12
+ }
13
+ }
14
+ }
15
+
16
+ .icon-stack,
17
+ .icon--stack {
18
+ @extend %icon-stack;
19
+
20
+ &--new-window {
21
+ // anchor icons to top-right and bottom-left
22
+ .icon {
23
+ &.f-icon-new-window {
24
+ width: 55%;
25
+ height: 55%;
26
+ top: 0;
27
+ right: 0;
28
+ }
29
+
30
+ &:not(.f-icon-new-window) {
31
+ width: 83%;
32
+ height: 83%;
33
+ bottom: 0;
34
+ left: 5%;
35
+ }
36
+ }
37
+ }
38
+
39
+ &--tooltip {
40
+ .f-icon-circle {
41
+ fill: $icon-tooltip-color-background;
42
+ color: $icon-tooltip-color-border;
43
+ }
44
+
45
+ .f-icon-i {
46
+ color: $icon-tooltip-color-content;
47
+ }
48
+ }
49
+
50
+ &--info {
51
+ .f-icon-circle {
52
+ color: $icon-info-color-background;
53
+ fill: $icon-info-color-border;
54
+ }
55
+
56
+ .f-icon-i {
57
+ color: $icon-info-color-content;
58
+ }
59
+ }
60
+
61
+ &--warning {
62
+ .f-icon-circle {
63
+ color: $icon-warning-color-background;
64
+ fill: $icon-warning-color-border;
65
+ }
66
+
67
+ .f-icon-alert {
68
+ color: $icon-warning-color-content;
69
+ }
70
+ }
71
+
72
+ &--error {
73
+ .f-icon-triangle {
74
+ color: $icon-error-color-background;
75
+ fill: $icon-error-color-border;
76
+ }
77
+
78
+ .f-icon-alert {
79
+ color: $icon-error-color-content;
80
+ }
81
+ }
82
+
83
+ &--success {
84
+ .f-icon-circle {
85
+ color: $icon-success-color-background;
86
+ fill: $icon-success-color-border;
87
+ }
88
+ .f-icon-success {
89
+ color: $icon-success-color-content;
90
+ transform: scale(0.6);
91
+ }
92
+ }
93
+
94
+ @media (forced-colors: active) {
95
+ &--info,
96
+ &--warning,
97
+ &--error,
98
+ &--success {
99
+ .f-icon-circle,
100
+ .f-icon-triangle {
101
+ color: Canvas;
102
+ fill: CanvasText;
103
+ }
104
+
105
+ .f-icon-alert,
106
+ .f-icon-i,
107
+ .f-icon-success {
108
+ color: CanvasText;
109
+ }
110
+ }
111
+
112
+ &--tooltip {
113
+ .f-icon-circle {
114
+ color: Canvas;
115
+ fill: ButtonBorder;
116
+ }
117
+
118
+ .f-icon-i {
119
+ color: ButtonText;
120
+ }
121
+ }
122
+ }
123
+
124
+ &--large {
125
+ width: 2.5rem;
126
+ height: 2.5rem;
127
+
128
+ svg {
129
+ width: 100%;
130
+ height: 100%;
131
+ }
132
+ }
133
+
134
+ &--circle,
135
+ &--circle-bottom {
136
+ width: 4rem;
137
+ height: 4rem;
138
+ border-radius: 100%;
139
+ overflow: hidden;
140
+ .f-icon-circle {
141
+ color: var(--f-icon-color-success-background);
142
+ fill: var(--f-icon-color-success-background);
143
+ width: 100%;
144
+ height: 100%;
145
+ }
146
+ .icon:not(.f-icon-circle) {
147
+ color: var(--f-icon-color-success);
148
+ position: absolute;
149
+ }
150
+ }
151
+ &--circle {
152
+ .icon:not(.f-icon-circle) {
153
+ width: 100 * 0.7%;
154
+ height: 100 * 0.7%;
155
+ inset: 0;
156
+ margin: auto;
157
+ }
158
+ }
159
+
160
+ &--circle-bottom {
161
+ .icon:not(.f-icon-circle) {
162
+ width: 100 * 0.8%;
163
+ height: 100 * 0.8%;
164
+ left: 0;
165
+ right: 0;
166
+ margin: 0 auto;
167
+ bottom: 0%;
168
+ }
169
+ }
170
+ }
@@ -21,16 +21,6 @@
21
21
  transition: opacity var(--f-animation-duration-medium) ease-in-out;
22
22
  width: var(--f-icon-size-large);
23
23
  }
24
-
25
- %icon-stack {
26
- @extend %icon--base;
27
-
28
- position: relative;
29
-
30
- .icon {
31
- position: absolute;
32
- }
33
- }
34
24
  }
35
25
 
36
26
  .icon {
@@ -57,7 +47,6 @@
57
47
  }
58
48
  }
59
49
 
60
- .icon-stack,
61
50
  .icon {
62
51
  &--new-window {
63
52
  // anchor icons to top-right and bottom-left
@@ -78,110 +67,3 @@
78
67
  }
79
68
  }
80
69
  }
81
-
82
- .icon-stack,
83
- .icon--stack {
84
- @extend %icon-stack;
85
-
86
- &--tooltip {
87
- .f-icon-circle {
88
- fill: $icon-tooltip-color-background;
89
- color: $icon-tooltip-color-border;
90
- }
91
-
92
- .f-icon-i {
93
- color: $icon-tooltip-color-content;
94
- }
95
- }
96
-
97
- &--info {
98
- .f-icon-circle {
99
- color: $icon-info-color-background;
100
- fill: $icon-info-color-border;
101
- }
102
-
103
- .f-icon-i {
104
- color: $icon-info-color-content;
105
- }
106
- }
107
-
108
- &--warning {
109
- .f-icon-circle {
110
- color: $icon-warning-color-background;
111
- fill: $icon-warning-color-border;
112
- }
113
-
114
- .f-icon-alert {
115
- color: $icon-warning-color-content;
116
- }
117
- }
118
-
119
- &--error {
120
- .f-icon-triangle {
121
- color: $icon-error-color-background;
122
- fill: $icon-error-color-border;
123
- }
124
-
125
- .f-icon-alert {
126
- color: $icon-error-color-content;
127
- }
128
- }
129
-
130
- &--success {
131
- .f-icon-circle {
132
- color: $icon-success-color-background;
133
- fill: $icon-success-color-border;
134
- }
135
- .f-icon-success {
136
- color: $icon-success-color-content;
137
- transform: scale(0.6);
138
- }
139
- }
140
-
141
- &--large {
142
- width: 2.5rem;
143
- height: 2.5rem;
144
-
145
- svg {
146
- width: 100%;
147
- height: 100%;
148
- }
149
- }
150
-
151
- &--circle,
152
- &--circle-bottom {
153
- width: 4rem;
154
- height: 4rem;
155
- border-radius: 100%;
156
- overflow: hidden;
157
- .f-icon-circle {
158
- color: var(--f-icon-color-success-background);
159
- fill: var(--f-icon-color-success-background);
160
- width: 100%;
161
- height: 100%;
162
- }
163
- .icon:not(.f-icon-circle) {
164
- color: var(--f-icon-color-success);
165
- position: absolute;
166
- }
167
- }
168
- &--circle {
169
- .icon:not(.f-icon-circle) {
170
- width: 100 * 0.7%;
171
- height: 100 * 0.7%;
172
- inset: 0;
173
- margin: auto;
174
- }
175
- }
176
-
177
- &--circle-bottom {
178
- .icon:not(.f-icon-circle) {
179
- width: 100 * 0.8%;
180
- height: 100 * 0.8%;
181
- left: 0;
182
- right: 0;
183
- margin: 0 auto;
184
- bottom: 0%;
185
- }
186
- }
187
- }
@@ -1 +1,2 @@
1
1
  @use "icon";
2
+ @use "icon-stack";
@@ -1,5 +1,6 @@
1
1
  @use "../../core/size";
2
2
  @use "../../core/mixins/breakpoints";
3
+ @use "../../core/mixins/forcedcolors";
3
4
  @use "../../core/config-variables";
4
5
  @use "variables" as *;
5
6
 
@@ -18,10 +19,18 @@
18
19
  a:visited,
19
20
  a:active {
20
21
  color: $navigationmenu-menuitem-color-text-active;
22
+
23
+ @media (forced-colors: active) {
24
+ color: LinkText;
25
+ }
21
26
  }
22
27
 
23
28
  a:hover {
24
29
  color: $navigationmenu-menuitem-color-text-hover;
30
+
31
+ @media (forced-colors: active) {
32
+ color: LinkText;
33
+ }
25
34
  }
26
35
  }
27
36
  }
@@ -53,14 +62,20 @@
53
62
  &:hover {
54
63
  font-weight: var(--f-font-weight-normal);
55
64
  background-color: $navigationmenu-vertical-color-background-hover;
65
+ @include forcedcolors.hover-indicator(outline, 2px);
56
66
  }
57
67
 
58
68
  &--highlight {
59
69
  font-weight: var(--f-font-weight-medium);
60
70
  background-color: $navigationmenu-vertical-color-background-selected;
71
+ @include forcedcolors.selected-indicator;
61
72
 
62
73
  .imenu__list__anchor {
63
74
  color: $navigationmenu-vertical-menuitem-color-text-selected;
75
+
76
+ @media (forced-colors: active) {
77
+ color: HighlightText;
78
+ }
64
79
  }
65
80
  }
66
81
 
@@ -68,6 +83,7 @@
68
83
  background-color: $navigationmenu-vertical-color-background-selected;
69
84
  font-weight: var(--f-font-weight-medium);
70
85
  color: $navigationmenu-vertical-menuitem-color-text-selected;
86
+ @include forcedcolors.selected-indicator;
71
87
  }
72
88
  }
73
89
  }
@@ -90,6 +106,7 @@
90
106
 
91
107
  .imenu__list__anchor-container {
92
108
  border-bottom: 5px solid $navigationmenu-horizontal-color-border-selected;
109
+ @include forcedcolors.hover-indicator(border-bottom, 5px);
93
110
  }
94
111
 
95
112
  .imenu__list__anchor:hover {
@@ -104,11 +121,16 @@
104
121
 
105
122
  &__item:not(.imenu__list__item--highlight) .imenu__list__anchor-container:hover {
106
123
  border-bottom: 5px solid $navigationmenu-horizontal-color-border-hover;
124
+ @include forcedcolors.hover-indicator(border-bottom, 5px);
107
125
  }
108
126
 
109
127
  &__anchor-container {
110
128
  padding-bottom: size.$padding-050;
111
129
  border-bottom: 5px solid transparent;
130
+
131
+ @media (forced-colors: active) {
132
+ border-bottom: none;
133
+ }
112
134
  }
113
135
 
114
136
  &__anchor {
@@ -2,6 +2,7 @@
2
2
  @use "../message-box/message-box";
3
3
  @use "../z-index";
4
4
  @use "../icon/icon";
5
+ @use "../icon/icon-stack";
5
6
 
6
7
  // @at-root is used to set these classes globally due to styling scope issue where the component is used out of the styling scope
7
8
  @at-root {
@@ -25,7 +25,6 @@ $page-header-separator-width: 1px !default;
25
25
  }
26
26
  &::after {
27
27
  content: " ";
28
- background-color: $pageheader-color-separator-inverted;
29
28
  height: 1.38rem;
30
29
  padding: calc($page-header-separator-width / 2);
31
30
  margin: 0 size.$padding-100 0.155rem;
@@ -1,4 +1,3 @@
1
1
  $pageheader-color-text: var(--fkds-color-header-text-primary) !default;
2
2
  $pageheader-appname-color-text: var(--fkds-color-header-text-primary) !default;
3
- $pageheader-color-separator-inverted: var(--fkds-color-header-text-primary) !default;
4
3
  $pageheader-color-background: var(--fkds-color-header-background-primary) !default;
@@ -1,4 +1,5 @@
1
1
  @use "../../core";
2
+ @use "../../core/mixins/forcedcolors";
2
3
  @use "../../core/size";
3
4
  @use "variables" as *;
4
5
 
@@ -27,7 +28,7 @@ $paginator-width-full: $button-width + $gap-size + $page-width * $number-of-page
27
28
  &__page,
28
29
  &__previous,
29
30
  &__next {
30
- border: none;
31
+ border: 2px solid transparent;
31
32
  color: var(--fkds-color-text-primary);
32
33
  height: $button-height;
33
34
  background-color: transparent;
@@ -38,10 +39,12 @@ $paginator-width-full: $button-width + $gap-size + $page-width * $number-of-page
38
39
  &--active {
39
40
  color: var(--fkds-color-action-text-inverted-default);
40
41
  background-color: var(--fkds-color-action-background-primary-default);
42
+ @include forcedcolors.selected-indicator;
41
43
  }
42
44
 
43
45
  &:hover:enabled:not(&--active) {
44
46
  background-color: var(--fkds-color-action-background-secondary-hover);
47
+ @include forcedcolors.hover-indicator(border, 2px);
45
48
  }
46
49
  }
47
50
 
@@ -83,7 +83,9 @@ $radio_button_label_offset: 0.1rem;
83
83
  }
84
84
 
85
85
  .radio-button__label {
86
+ color: $radio-button-color-text-disabled;
86
87
  cursor: default;
88
+
87
89
  &::before,
88
90
  &::after {
89
91
  background: $radio-button-color-background-disabled;