@itwin/itwinui-css 0.55.0 → 0.58.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.
Files changed (48) hide show
  1. package/css/all.css +1116 -689
  2. package/css/anchor.css +21 -17
  3. package/css/breadcrumbs.css +312 -57
  4. package/css/button.css +9 -12
  5. package/css/dialog.css +201 -0
  6. package/css/footer.css +1 -17
  7. package/css/global.css +1 -17
  8. package/css/inputs.css +18 -168
  9. package/css/radio-tile.css +217 -0
  10. package/css/table.css +25 -14
  11. package/css/tabs.css +4 -0
  12. package/css/tag.css +1 -17
  13. package/css/text.css +9 -3
  14. package/css/toast-notification.css +1 -1
  15. package/css/toggle-switch.css +65 -0
  16. package/package.json +1 -1
  17. package/scss/anchor/classes.scss +4 -0
  18. package/scss/breadcrumbs/breadcrumbs.scss +77 -18
  19. package/scss/breadcrumbs/classes.scss +12 -0
  20. package/scss/button/button.scss +17 -16
  21. package/scss/button/classes.scss +4 -0
  22. package/scss/button/cta.scss +3 -1
  23. package/scss/button/default.scss +0 -2
  24. package/scss/button/high-visibility.scss +3 -1
  25. package/scss/classes.scss +4 -3
  26. package/scss/dialog/classes.scss +47 -0
  27. package/scss/dialog/dialog.scss +213 -0
  28. package/scss/{modal → dialog}/index.scss +1 -1
  29. package/scss/index.scss +4 -3
  30. package/scss/inputs/checkbox.scss +11 -6
  31. package/scss/inputs/classes.scss +0 -4
  32. package/scss/inputs/index.scss +0 -1
  33. package/scss/inputs/labeled-inputs.scss +1 -1
  34. package/scss/radio-tile/classes.scss +31 -0
  35. package/scss/radio-tile/index.scss +3 -0
  36. package/scss/radio-tile/radio-tile.scss +209 -0
  37. package/scss/style/anchor.scss +19 -16
  38. package/scss/table/classes.scss +4 -0
  39. package/scss/table/paginator.scss +4 -0
  40. package/scss/table/table.scss +9 -2
  41. package/scss/tabs/tabs.scss +6 -0
  42. package/scss/text/skeleton.scss +13 -7
  43. package/scss/toast-notification/classes.scss +1 -1
  44. package/scss/toggle-switch/toggle-switch.scss +50 -2
  45. package/css/modal.css +0 -132
  46. package/scss/inputs/radio-tile.scss +0 -200
  47. package/scss/modal/classes.scss +0 -15
  48. package/scss/modal/modal.scss +0 -155
@@ -0,0 +1,217 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ .iui-radio-tile{
6
+ cursor:pointer;
7
+ -webkit-tap-highlight-color:rgba(0, 138, 224, 0.1);
8
+ -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
9
+ }
10
+ .iui-radio-tile:first-of-type > .iui-radio-tile-content{
11
+ border-radius:3px 0 0 3px;
12
+ }
13
+ .iui-radio-tile:last-of-type > .iui-radio-tile-content{
14
+ border-radius:0 3px 3px 0;
15
+ }
16
+ .iui-radio-tile:not(:first-of-type) > .iui-radio-tile-content{
17
+ margin-left:-1px;
18
+ }
19
+
20
+ .iui-radio-tile-content{
21
+ width:160px;
22
+ height:100%;
23
+ box-sizing:border-box;
24
+ padding:8px;
25
+ position:relative;
26
+ z-index:1;
27
+ border:1px solid rgba(0, 0, 0, 0.4);
28
+ background-color:white;
29
+ border:1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
30
+ background-color:var(--iui-color-background-1);
31
+ }
32
+ @media (prefers-reduced-motion: no-preference){
33
+ .iui-radio-tile-content{
34
+ transition:border-color 0.2s ease-out;
35
+ }
36
+ }
37
+ .iui-radio-tile-content:hover{
38
+ z-index:2;
39
+ border-color:rgba(0, 0, 0, 0.8);
40
+ border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
41
+ }
42
+ .iui-radio-tile-content:hover .iui-radio-tile-icon{
43
+ fill:rgba(0, 0, 0, 0.8);
44
+ fill:var(--iui-icons-color-actionable);
45
+ }
46
+ @media (forced-colors: active){
47
+ .iui-radio-tile-content:hover .iui-radio-tile-icon{
48
+ fill:CanvasText;
49
+ }
50
+ }
51
+
52
+ .iui-radio-tile-container{
53
+ display:inline-flex;
54
+ flex-wrap:wrap;
55
+ -webkit-user-select:none;
56
+ -moz-user-select:none;
57
+ -ms-user-select:none;
58
+ user-select:none;
59
+ position:relative;
60
+ z-index:0;
61
+ }
62
+
63
+ .iui-radio-tile-input{
64
+ width:0;
65
+ height:0;
66
+ -webkit-appearance:none;
67
+ -moz-appearance:none;
68
+ appearance:none;
69
+ opacity:0;
70
+ position:absolute;
71
+ }
72
+ .iui-radio-tile-input:focus-visible + *{
73
+ outline-offset:-4px;
74
+ outline:2px solid #008ae0;
75
+ outline:2px solid var(--iui-color-foreground-primary);
76
+ }
77
+ @media (forced-colors: active){
78
+ .iui-radio-tile-input:focus-visible + *{
79
+ outline-color:Highlight;
80
+ }
81
+ }
82
+ @supports not selector(*:focus-visible){
83
+ .iui-radio-tile-input:focus + *{
84
+ outline-offset:-4px;
85
+ outline:2px solid #008ae0;
86
+ outline:2px solid var(--iui-color-foreground-primary);
87
+ }
88
+ @media (forced-colors: active){
89
+ .iui-radio-tile-input:focus + *{
90
+ outline-color:Highlight;
91
+ }
92
+ }
93
+ }
94
+ .iui-radio-tile-input:checked + *{
95
+ padding:7px;
96
+ z-index:3;
97
+ border:2px solid #008ae0;
98
+ border:2px solid var(--iui-color-foreground-primary);
99
+ }
100
+ @media (forced-colors: active){
101
+ .iui-radio-tile-input:checked + *{
102
+ border-color:Highlight;
103
+ }
104
+ }
105
+ .iui-radio-tile-input:checked + * .iui-radio-tile-icon{
106
+ fill:#008ae0;
107
+ fill:var(--iui-icons-color-primary);
108
+ }
109
+ @media (forced-colors: active){
110
+ .iui-radio-tile-input:checked + * .iui-radio-tile-icon{
111
+ fill:Highlight;
112
+ }
113
+ }
114
+ .iui-radio-tile-input:checked + *::after{
115
+ content:"";
116
+ width:16px;
117
+ height:16px;
118
+ position:absolute;
119
+ top:8px;
120
+ right:8px;
121
+ -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6,14L0,8l2-2l4,4l8-8l2,2L6,14z" /></svg>');
122
+ mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6,14L0,8l2-2l4,4l8-8l2,2L6,14z" /></svg>');
123
+ background-color:#008ae0;
124
+ background-color:var(--iui-color-foreground-primary);
125
+ }
126
+ @media (forced-colors: active){
127
+ .iui-radio-tile-input:checked + *::after{
128
+ background-color:Highlight;
129
+ }
130
+ }
131
+ .iui-radio-tile-input:disabled + *{
132
+ cursor:not-allowed;
133
+ z-index:0;
134
+ border-color:#edeff2;
135
+ background-color:#edeff2;
136
+ border-color:var(--iui-color-background-disabled);
137
+ background-color:var(--iui-color-background-disabled);
138
+ }
139
+ .iui-radio-tile-input:disabled + *::after{
140
+ background-color:rgba(0, 0, 0, 0.2);
141
+ background-color:var(--iui-icons-color-actionable-disabled);
142
+ }
143
+ @media (forced-colors: active){
144
+ .iui-radio-tile-input:disabled + *::after{
145
+ background-color:GrayText;
146
+ }
147
+ }
148
+ .iui-radio-tile-input:disabled + * .iui-radio-tile-icon{
149
+ filter:grayscale(100%);
150
+ fill:rgba(0, 0, 0, 0.2);
151
+ fill:var(--iui-icons-color-actionable-disabled);
152
+ }
153
+ @media (forced-colors: active){
154
+ .iui-radio-tile-input:disabled + * .iui-radio-tile-icon{
155
+ fill:GrayText;
156
+ }
157
+ }
158
+ @media (forced-colors: active){
159
+ .iui-radio-tile-input:disabled + * .iui-radio-tile-label,
160
+ .iui-radio-tile-input:disabled + * .iui-radio-tile-sublabel{
161
+ color:GrayText;
162
+ }
163
+ }
164
+ .iui-radio-tile-input:disabled + * .iui-radio-tile-label{
165
+ color:rgba(0, 0, 0, 0.4);
166
+ color:var(--iui-text-color-muted);
167
+ }
168
+ .iui-radio-tile-input:disabled:checked + *{
169
+ z-index:3;
170
+ border:2px solid rgba(0, 0, 0, 0.4);
171
+ border:2px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
172
+ }
173
+ @media (forced-colors: active){
174
+ .iui-radio-tile-input:disabled:checked + *{
175
+ border-color:GrayText;
176
+ }
177
+ }
178
+
179
+ .iui-radio-tile-icon{
180
+ width:32px;
181
+ height:32px;
182
+ display:block;
183
+ margin:0 auto;
184
+ padding-top:6px;
185
+ padding-bottom:11px;
186
+ fill:rgba(0, 0, 0, 0.4);
187
+ fill:var(--iui-icons-color);
188
+ }
189
+ @media (prefers-reduced-motion: no-preference){
190
+ .iui-radio-tile-icon{
191
+ transition:fill 0.2s ease-out;
192
+ }
193
+ }
194
+ @media (forced-colors: active){
195
+ .iui-radio-tile-icon{
196
+ fill:CanvasText;
197
+ }
198
+ }
199
+
200
+ .iui-radio-tile-label{
201
+ font-size:14px;
202
+ font-weight:600;
203
+ line-height:22px;
204
+ text-align:center;
205
+ word-break:break-word;
206
+ color:rgba(0, 0, 0, 0.8);
207
+ color:var(--iui-text-color);
208
+ }
209
+
210
+ .iui-radio-tile-sublabel{
211
+ font-size:12px;
212
+ line-height:15px;
213
+ text-align:center;
214
+ word-break:break-word;
215
+ color:rgba(0, 0, 0, 0.4);
216
+ color:var(--iui-text-color-muted);
217
+ }
package/css/table.css CHANGED
@@ -68,6 +68,11 @@
68
68
  border-left:solid 1px transparent;
69
69
  border-right:solid 1px transparent;
70
70
  }
71
+ .iui-table-header .iui-cell:not(.iui-slot){
72
+ flex-wrap:wrap;
73
+ -moz-column-gap:4px;
74
+ column-gap:4px;
75
+ }
71
76
  .iui-table-header .iui-cell:not(.iui-slot):focus-visible{
72
77
  outline:1px solid var(--iui-color-foreground-primary);
73
78
  outline-offset:-1px;
@@ -85,11 +90,10 @@
85
90
  cursor:-webkit-grabbing;
86
91
  cursor:grabbing;
87
92
  }
88
- .iui-table-header .iui-cell:not(.iui-slot) > .iui-filter-button{
89
- margin-left:4px;
93
+ .iui-table-header .iui-cell:not(.iui-slot) .iui-filter-button{
90
94
  margin-right:8px;
91
95
  }
92
- .iui-table-header .iui-cell:not(.iui-slot) > .iui-filter-button:not(.iui-active){
96
+ .iui-table-header .iui-cell:not(.iui-slot) .iui-filter-button:not(.iui-active){
93
97
  visibility:hidden;
94
98
  }
95
99
  .iui-table-header .iui-cell:not(.iui-slot) > .iui-resizer{
@@ -165,6 +169,12 @@
165
169
  fill:var(--iui-icons-color-actionable);
166
170
  }
167
171
 
172
+ .iui-table-header-actions-container{
173
+ display:flex;
174
+ flex-grow:1;
175
+ align-items:center;
176
+ }
177
+
168
178
  .iui-table-body{
169
179
  overflow-y:scroll;
170
180
  overflow:overlay;
@@ -533,6 +543,7 @@
533
543
 
534
544
  .iui-paginator-page-button{
535
545
  --_iui-button-active-stripe-inset:initial;
546
+ --_iui-button-text-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
536
547
  margin:0;
537
548
  padding:0;
538
549
  border:none;
@@ -559,6 +570,7 @@
559
570
  border:1px solid transparent;
560
571
  color:rgba(0, 0, 0, 0.8);
561
572
  color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
573
+ color:var(--_iui-button-text-color);
562
574
  border-color:transparent;
563
575
  background-color:transparent;
564
576
  padding:0 8px;
@@ -573,9 +585,8 @@
573
585
  }
574
586
  }
575
587
  .iui-paginator-page-button:hover{
588
+ --_iui-button-text-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
576
589
  text-decoration:none;
577
- color:black;
578
- color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
579
590
  }
580
591
  .iui-paginator-page-button:focus-visible{
581
592
  outline:1px solid var(--iui-color-foreground-primary);
@@ -596,15 +607,6 @@
596
607
  border-color:var(--iui-color-background-disabled);
597
608
  color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
598
609
  }
599
- .iui-paginator-page-button.iui-active::after{
600
- content:"";
601
- position:absolute;
602
- inset:var(--_iui-button-active-stripe-inset);
603
- background-color:var(--iui-color-foreground-primary);
604
- }
605
- .iui-paginator-page-button.iui-active[disabled]::after, .iui-paginator-page-button.iui-active:disabled::after{
606
- background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
607
- }
608
610
  .iui-paginator-page-button > .iui-button-icon:only-child{
609
611
  margin-left:3px;
610
612
  margin-right:3px;
@@ -639,6 +641,15 @@
639
641
  background-color:rgba(0, 0, 0, 0.05);
640
642
  background-color:rgba(var(--iui-color-foreground-body-rgb), 0.05);
641
643
  }
644
+ .iui-paginator-page-button.iui-active::after{
645
+ content:"";
646
+ position:absolute;
647
+ inset:var(--_iui-button-active-stripe-inset);
648
+ background-color:var(--iui-color-foreground-primary);
649
+ }
650
+ .iui-paginator-page-button.iui-active[disabled]::after, .iui-paginator-page-button.iui-active:disabled::after{
651
+ background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
652
+ }
642
653
  .iui-paginator-page-button-small{
643
654
  padding:0 8px;
644
655
  height:27px;
package/css/tabs.css CHANGED
@@ -78,6 +78,10 @@
78
78
  fill:#008ae0;
79
79
  fill:var(--iui-icons-color-primary);
80
80
  }
81
+ .iui-tabs .iui-tab.iui-active .iui-tab-description{
82
+ opacity:1;
83
+ opacity:var(--iui-opacity-1);
84
+ }
81
85
  .iui-tabs .iui-tab[disabled]{
82
86
  cursor:not-allowed;
83
87
  color:rgba(0, 0, 0, 0.4);
package/css/tag.css CHANGED
@@ -73,12 +73,12 @@
73
73
  }
74
74
 
75
75
  a.iui-tag-basic{
76
- --_iui-anchor-external-svg:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m16 0v5.4l-1.9-2-8.4 8.4-1.5-1.5 8.3-8.4-1.9-1.9m5.4 16v-9h-1v8h-14v-14h8v-1h-9v16z' /></svg>");
77
76
  color:#008ae0;
78
77
  -webkit-tap-highlight-color:rgba(0, 138, 224, 0.2);
79
78
  color:var(--iui-color-foreground-primary);
80
79
  -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
81
80
  border-radius:3px;
81
+ box-sizing:border-box;
82
82
  cursor:pointer;
83
83
  text-decoration:none;
84
84
  }
@@ -96,22 +96,6 @@ a.iui-tag-basic:hover{
96
96
  color:#006bad;
97
97
  color:var(--iui-color-foreground-primary-overlay);
98
98
  }
99
- a.iui-tag-basic-external::after{
100
- content:"";
101
- display:inline-block;
102
- width:1.5ch;
103
- height:1.5ch;
104
- margin-left:0.5ch;
105
- vertical-align:-0.1ch;
106
- background-color:currentColor;
107
- -webkit-mask:var(--_iui-anchor-external-svg);
108
- mask:var(--_iui-anchor-external-svg);
109
- }
110
- @media (forced-colors: active){
111
- a.iui-tag-basic-external::after{
112
- background-color:LinkText;
113
- }
114
- }
115
99
  a.iui-tag-basic:hover{
116
100
  text-decoration:underline;
117
101
  }
package/css/text.css CHANGED
@@ -75,11 +75,17 @@
75
75
  user-select:none;
76
76
  color:transparent;
77
77
  border-radius:3px;
78
- background:linear-gradient(270deg, #edeff2, #edeff2, #f9f9fb, #edeff2, #edeff2);
79
- background-size:200% 100%;
80
- background:linear-gradient(270deg, var(--iui-color-background-3), var(--iui-color-background-3), var(--iui-color-background-2), var(--iui-color-background-3), var(--iui-color-background-3));
78
+ cursor:progress;
79
+ background:linear-gradient(292deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
80
+ background:linear-gradient(292deg, var(--iui-text-color-muted), var(--iui-text-color-muted), var(--iui-text-color-placeholder), var(--iui-text-color-muted), var(--iui-text-color-muted));
81
81
  background-size:200% 100%;
82
82
  }
83
+ @media (forced-colors: active){
84
+ .iui-skeleton{
85
+ forced-color-adjust:none;
86
+ background:linear-gradient(292deg, CanvasText, CanvasText, Canvas, CanvasText, CanvasText);
87
+ }
88
+ }
83
89
  @media (prefers-reduced-motion: no-preference){
84
90
  .iui-skeleton{
85
91
  -webkit-animation:skeleton-shimmer 0.8s linear infinite;
@@ -9,7 +9,7 @@
9
9
  align-items:center;
10
10
  flex-direction:column;
11
11
  justify-content:center;
12
- z-index:1070;
12
+ z-index:99999;
13
13
  }
14
14
  @media screen and (max-width: 400px){
15
15
  .iui-toast-wrapper{
@@ -38,6 +38,11 @@
38
38
  color:rgba(0, 0, 0, 0.4);
39
39
  color:var(--iui-text-color-muted);
40
40
  }
41
+ @media (forced-colors: active){
42
+ .iui-toggle-switch-wrapper.iui-disabled{
43
+ color:GrayText;
44
+ }
45
+ }
41
46
  .iui-toggle-switch-wrapper.iui-label-on-left{
42
47
  grid-template-areas:"label toggle";
43
48
  }
@@ -119,13 +124,29 @@
119
124
  transition:transform 0.2s ease-out, background-color 0.2s ease-out, opacity 0.2s ease-out;
120
125
  }
121
126
  }
127
+ @media (forced-colors: active){
128
+ .iui-toggle-switch{
129
+ border-color:CanvasText;
130
+ }
131
+ }
122
132
  .iui-toggle-switch::after{
123
133
  background-color:var(--iui-color-foreground-body);
124
134
  opacity:var(--iui-opacity-2);
125
135
  }
136
+ @media (forced-colors: active){
137
+ .iui-toggle-switch::after{
138
+ background-color:CanvasText;
139
+ opacity:1;
140
+ }
141
+ }
126
142
  .iui-toggle-switch:hover{
127
143
  border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
128
144
  }
145
+ @media (forced-colors: active){
146
+ .iui-toggle-switch:hover{
147
+ border-color:CanvasText;
148
+ }
149
+ }
129
150
  .iui-toggle-switch:focus-visible{
130
151
  border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
131
152
  }
@@ -138,11 +159,23 @@
138
159
  background-color:var(--iui-color-background-primary);
139
160
  border-color:var(--iui-color-background-primary);
140
161
  }
162
+ @media (forced-colors: active){
163
+ .iui-toggle-switch:checked{
164
+ background-color:Highlight;
165
+ border-color:Highlight;
166
+ }
167
+ }
141
168
  .iui-toggle-switch:checked::after{
142
169
  transform:translateX(19px);
143
170
  background-color:var(--iui-color-foreground-accessory);
144
171
  opacity:var(--iui-opacity-2);
145
172
  }
173
+ @media (forced-colors: active){
174
+ .iui-toggle-switch:checked::after{
175
+ background-color:HighlightText;
176
+ opacity:1;
177
+ }
178
+ }
146
179
  .iui-toggle-switch:checked ~ .iui-toggle-switch-icon{
147
180
  opacity:var(--iui-opacity-1);
148
181
  }
@@ -162,17 +195,44 @@
162
195
  background-color:var(--iui-color-background-disabled);
163
196
  border-color:var(--iui-color-background-disabled);
164
197
  }
198
+ @media (forced-colors: active){
199
+ .iui-toggle-switch:disabled{
200
+ border-color:GrayText;
201
+ }
202
+ }
165
203
  .iui-toggle-switch:disabled::after{
166
204
  background-color:var(--iui-color-foreground-body);
167
205
  opacity:var(--iui-opacity-5);
168
206
  }
207
+ @media (forced-colors: active){
208
+ .iui-toggle-switch:disabled::after{
209
+ background-color:GrayText;
210
+ opacity:0.75;
211
+ }
212
+ }
169
213
  .iui-toggle-switch:disabled ~ .iui-toggle-switch-icon{
170
214
  opacity:0;
171
215
  fill:var(--iui-icons-color-actionable);
172
216
  }
217
+ @media (forced-colors: active){
218
+ .iui-toggle-switch:disabled:checked{
219
+ background-color:GrayText;
220
+ }
221
+ }
222
+ @media (forced-colors: active){
223
+ .iui-toggle-switch:disabled:checked::after{
224
+ background-color:Canvas;
225
+ }
226
+ }
173
227
  .iui-toggle-switch:disabled:checked ~ .iui-toggle-switch-icon{
174
228
  opacity:var(--iui-opacity-5);
175
229
  }
230
+ @media (forced-colors: active){
231
+ .iui-toggle-switch:disabled:checked ~ .iui-toggle-switch-icon{
232
+ fill:Canvas;
233
+ opacity:0.75;
234
+ }
235
+ }
176
236
  .iui-toggle-switch-icon{
177
237
  -ms-grid-row:1;
178
238
  -ms-grid-column:1;
@@ -195,4 +255,9 @@
195
255
  .iui-toggle-switch-wrapper.iui-label-on-right > .iui-toggle-switch-icon{
196
256
  -ms-grid-row:1;
197
257
  -ms-grid-column:1;
258
+ }
259
+ @media (forced-colors: active){
260
+ .iui-toggle-switch-icon{
261
+ fill:HighlightText;
262
+ }
198
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.55.0",
3
+ "version": "0.58.0",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -4,4 +4,8 @@
4
4
 
5
5
  .iui-anchor {
6
6
  @include iui-anchor;
7
+
8
+ &-external {
9
+ @include iui-anchor-external;
10
+ }
7
11
  }
@@ -21,45 +21,104 @@
21
21
 
22
22
  @mixin iui-breadcrumbs-item {
23
23
  display: flex;
24
+ align-items: center;
24
25
  line-height: $iui-component-height;
25
26
  height: $iui-component-height;
26
- max-width: $iui-3xl * 2;
27
- margin: 0 $iui-sm;
28
27
 
29
- a {
30
- @include iui-anchor;
31
- }
32
-
33
- .iui-button {
34
- @include iui-button-borderless;
35
- margin: 0 (-$iui-s - 1);
28
+ > * {
29
+ max-width: 26ch;
36
30
  }
31
+ }
37
32
 
38
- > *,
39
- .iui-button-label {
33
+ @mixin iui-breadcrumbs-item-overrides {
34
+ > * {
35
+ padding: 0 $iui-s;
40
36
  overflow: hidden;
41
37
  white-space: nowrap;
42
38
  text-overflow: ellipsis;
39
+
40
+ &:not(.iui-button) {
41
+ @include themed {
42
+ color: t(iui-text-color);
43
+ }
44
+ }
43
45
  }
44
46
 
45
- &:not(.iui-current) > .iui-button {
46
- @include themed {
47
- color: t(iui-color-foreground-primary);
47
+ > :any-link {
48
+ @include iui-anchor;
49
+
50
+ &:focus {
51
+ outline-offset: -1px;
48
52
  }
53
+ }
49
54
 
50
- &:hover {
51
- @include themed {
52
- color: t(iui-color-foreground-primary-overlay);
55
+ .iui-button {
56
+ &.iui-button {
57
+ @include iui-button-borderless;
58
+ @include iui-focus;
59
+ border: none;
60
+ }
61
+
62
+ &-label {
63
+ overflow: hidden;
64
+ white-space: nowrap;
65
+ text-overflow: ellipsis;
66
+ }
67
+
68
+ &:not([aria-current]) {
69
+ &,
70
+ &:hover,
71
+ &:active {
72
+ --_iui-button-text-color: var(--iui-color-foreground-primary);
53
73
  }
54
74
  }
55
75
  }
56
76
  }
57
77
 
78
+ @mixin iui-breadcrumbs-text {
79
+ padding: 0 $iui-s;
80
+ overflow: hidden;
81
+ white-space: nowrap;
82
+ text-overflow: ellipsis;
83
+
84
+ @at-root a#{&} {
85
+ @include iui-anchor;
86
+
87
+ &:focus {
88
+ outline-offset: -1px;
89
+ }
90
+ }
91
+ }
92
+
93
+ @mixin iui-breadcrumbs-button {
94
+ @include iui-button;
95
+ @include iui-button-borderless;
96
+ padding: 0;
97
+ border: none;
98
+ @include themed {
99
+ color: t(iui-color-foreground-primary);
100
+ }
101
+
102
+ &[aria-current] {
103
+ @include themed {
104
+ color: t(iui-text-color);
105
+ }
106
+ }
107
+ }
108
+
58
109
  @mixin iui-breadcrumbs-separator {
59
110
  display: flex;
111
+ margin: 0 $iui-xxs;
60
112
 
61
113
  svg {
62
- @include iui-icons-small;
114
+ width: $iui-icons-small;
115
+ height: $iui-icons-small;
63
116
  display: flex; // needed for vertical alignment of webcomponents
117
+ @include themed {
118
+ fill: t(iui-icons-color);
119
+ }
120
+ @media (forced-colors: active) {
121
+ fill: CanvasText;
122
+ }
64
123
  }
65
124
  }
@@ -14,6 +14,18 @@
14
14
  @include iui-breadcrumbs-item;
15
15
  }
16
16
 
17
+ .iui-breadcrumbs-item-overrides {
18
+ @include iui-breadcrumbs-item-overrides;
19
+ }
20
+
21
+ .iui-breadcrumbs-text {
22
+ @include iui-breadcrumbs-text;
23
+ }
24
+
25
+ .iui-breadcrumbs-button {
26
+ @include iui-breadcrumbs-button;
27
+ }
28
+
17
29
  .iui-breadcrumbs-separator {
18
30
  @include iui-breadcrumbs-separator;
19
31
  }