@itwin/itwinui-css 0.53.3 → 0.55.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/css/tile.css CHANGED
@@ -7,25 +7,23 @@
7
7
  padding:0;
8
8
  border:none;
9
9
  vertical-align:baseline;
10
+ --iui-surface-background-color:var(--iui-color-background-1);
11
+ --iui-surface-border-radius:0;
12
+ --iui-surface-elevation:0 1px 5px rgba(0, 0, 0, 0.25);
13
+ background-color:var(--iui-surface-background-color);
14
+ border-radius:var(--iui-surface-border-radius);
15
+ box-shadow:var(--iui-surface-elevation);
16
+ box-sizing:border-box;
17
+ color:var(--iui-text-color);
10
18
  display:inline-flex;
11
19
  flex-direction:column;
12
20
  width:288px;
13
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
14
21
  -webkit-backface-visibility:hidden;
15
22
  backface-visibility:hidden;
16
- background-color:white;
17
- color:rgba(0, 0, 0, 0.8);
18
- background-color:var(--iui-color-background-1);
19
- color:var(--iui-text-color);
20
- }
21
- .iui-tile:focus-visible{
22
- outline:2px solid var(--iui-color-foreground-primary);
23
- outline-offset:2px;
24
23
  }
25
- @supports not selector(*:focus-visible){
26
- .iui-tile:focus{
27
- outline:2px solid var(--iui-color-foreground-primary);
28
- outline-offset:2px;
24
+ @media (forced-colors: active){
25
+ .iui-tile{
26
+ border:1px solid transparent;
29
27
  }
30
28
  }
31
29
  .iui-tile:hover .iui-tile-more-options, .iui-tile:focus-within .iui-tile-more-options{
@@ -43,9 +41,6 @@
43
41
  .iui-tile:hover .iui-tile-metadata:not(:last-child), .iui-tile:focus-within .iui-tile-metadata:not(:last-child){
44
42
  width:calc(100% - 32px);
45
43
  }
46
- .iui-tile:hover .iui-tile-thumbnail-picture, .iui-tile:focus-within .iui-tile-thumbnail-picture{
47
- transform:translateZ(0) scale(1.1);
48
- }
49
44
  .iui-tile.iui-new .iui-tile-name,
50
45
  .iui-tile.iui-new .iui-tile-description{
51
46
  font-weight:600;
@@ -66,7 +61,24 @@
66
61
  outline-offset:0;
67
62
  }
68
63
  }
69
- .iui-tile.iui-selected .iui-tile-thumbnail-picture{
64
+ .iui-tile.iui-actionable{
65
+ cursor:pointer;
66
+ transition:box-shadow 0.2s ease-in-out;
67
+ }
68
+ .iui-tile.iui-actionable:focus-visible{
69
+ outline:2px solid var(--iui-color-foreground-primary);
70
+ outline-offset:2px;
71
+ }
72
+ @supports not selector(*:focus-visible){
73
+ .iui-tile.iui-actionable:focus{
74
+ outline:2px solid var(--iui-color-foreground-primary);
75
+ outline-offset:2px;
76
+ }
77
+ }
78
+ .iui-tile.iui-actionable:hover{
79
+ box-shadow:0 3px 14px rgba(0, 0, 0, 0.25);
80
+ }
81
+ .iui-tile.iui-actionable:hover .iui-tile-thumbnail-picture, .iui-tile.iui-actionable:focus-within .iui-tile-thumbnail-picture, .iui-tile.iui-actionable.iui-selected .iui-tile-thumbnail-picture{
70
82
  transform:translateZ(0) scale(1.1);
71
83
  }
72
84
  .iui-tile.iui-folder{
@@ -122,17 +122,19 @@
122
122
  color:rgba(0, 0, 0, 0.8);
123
123
  color:var(--iui-text-color);
124
124
  }
125
- .iui-toast > .iui-anchor{
125
+ .iui-toast-anchor{
126
+ text-decoration:underline;
127
+ border-radius:3px;
128
+ cursor:pointer;
126
129
  font-size:12px;
127
130
  margin-right:16px;
128
131
  -webkit-user-select:none;
129
132
  -moz-user-select:none;
130
133
  -ms-user-select:none;
131
134
  user-select:none;
132
- text-decoration:underline;
133
135
  white-space:nowrap;
134
136
  }
135
- .iui-toast > .iui-anchor:hover{
137
+ .iui-toast-anchor:hover{
136
138
  text-decoration:none;
137
139
  }
138
140
  .iui-toast > .iui-button{
@@ -166,6 +168,26 @@
166
168
  background-color:#008ae0;
167
169
  background-color:var(--iui-color-background-primary);
168
170
  }
171
+ .iui-toast.iui-informational > .iui-toast-anchor{
172
+ color:#008ae0;
173
+ -webkit-tap-highlight-color:rgba(0, 138, 224, 0.2);
174
+ color:var(--iui-color-foreground-primary);
175
+ -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
176
+ }
177
+ .iui-toast.iui-informational > .iui-toast-anchor:focus-visible{
178
+ outline:1px solid var(--iui-color-foreground-primary);
179
+ outline-offset:1px;
180
+ }
181
+ @supports not selector(*:focus-visible){
182
+ .iui-toast.iui-informational > .iui-toast-anchor:focus{
183
+ outline:1px solid var(--iui-color-foreground-primary);
184
+ outline-offset:1px;
185
+ }
186
+ }
187
+ .iui-toast.iui-informational > .iui-toast-anchor:hover{
188
+ color:#006bad;
189
+ color:var(--iui-color-foreground-primary-overlay);
190
+ }
169
191
  .iui-toast.iui-positive{
170
192
  border-color:#53a21a;
171
193
  border-color:var(--iui-color-foreground-positive);
@@ -183,19 +205,34 @@
183
205
  background-color:#53a21a;
184
206
  background-color:var(--iui-color-background-positive);
185
207
  }
186
- .iui-toast.iui-positive > .iui-anchor{
208
+ .iui-toast.iui-positive > .iui-toast-anchor{
187
209
  color:#53a21a;
210
+ -webkit-tap-highlight-color:rgba(83, 162, 26, 0.2);
188
211
  color:var(--iui-color-foreground-positive);
212
+ -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
189
213
  }
190
- .iui-toast.iui-positive > .iui-anchor:hover{
191
- color:#3d7613;
192
- color:var(--iui-color-foreground-positive-overlay);
214
+ .iui-toast.iui-positive > .iui-toast-anchor:focus-visible{
215
+ outline:1px solid var(--iui-color-foreground-positive);
216
+ outline-offset:1px;
193
217
  }
194
- .iui-toast.iui-positive > .iui-anchor{
195
- outline-color:var(--iui-color-foreground-positive);
218
+ @supports not selector(*:focus-visible){
219
+ .iui-toast.iui-positive > .iui-toast-anchor:focus{
220
+ outline:1px solid var(--iui-color-foreground-positive);
221
+ outline-offset:1px;
222
+ }
196
223
  }
197
- .iui-toast.iui-positive > .iui-button{
198
- outline-color:var(--iui-color-foreground-positive);
224
+ .iui-toast.iui-positive > .iui-toast-anchor::-moz-selection, .iui-toast.iui-positive > .iui-toast-anchor *::-moz-selection{
225
+ background-color:rgba(83, 162, 26, 0.2);
226
+ background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
227
+ }
228
+ .iui-toast.iui-positive > .iui-toast-anchor::selection,
229
+ .iui-toast.iui-positive > .iui-toast-anchor *::selection{
230
+ background-color:rgba(83, 162, 26, 0.2);
231
+ background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
232
+ }
233
+ .iui-toast.iui-positive > .iui-toast-anchor:hover{
234
+ color:#3d7613;
235
+ color:var(--iui-color-foreground-positive-overlay);
199
236
  }
200
237
  .iui-toast.iui-negative{
201
238
  border-color:#d10a0a;
@@ -214,19 +251,34 @@
214
251
  background-color:#d10a0a;
215
252
  background-color:var(--iui-color-background-negative);
216
253
  }
217
- .iui-toast.iui-negative > .iui-anchor{
254
+ .iui-toast.iui-negative > .iui-toast-anchor{
218
255
  color:#d10a0a;
256
+ -webkit-tap-highlight-color:rgba(209, 10, 10, 0.2);
219
257
  color:var(--iui-color-foreground-negative);
258
+ -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-5));
220
259
  }
221
- .iui-toast.iui-negative > .iui-anchor:hover{
222
- color:#a10808;
223
- color:var(--iui-color-foreground-negative-overlay);
260
+ .iui-toast.iui-negative > .iui-toast-anchor:focus-visible{
261
+ outline:1px solid var(--iui-color-foreground-negative);
262
+ outline-offset:1px;
224
263
  }
225
- .iui-toast.iui-negative > .iui-anchor{
226
- outline-color:var(--iui-color-foreground-negative);
264
+ @supports not selector(*:focus-visible){
265
+ .iui-toast.iui-negative > .iui-toast-anchor:focus{
266
+ outline:1px solid var(--iui-color-foreground-negative);
267
+ outline-offset:1px;
268
+ }
269
+ }
270
+ .iui-toast.iui-negative > .iui-toast-anchor::-moz-selection, .iui-toast.iui-negative > .iui-toast-anchor *::-moz-selection{
271
+ background-color:rgba(209, 10, 10, 0.2);
272
+ background-color:rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-5));
273
+ }
274
+ .iui-toast.iui-negative > .iui-toast-anchor::selection,
275
+ .iui-toast.iui-negative > .iui-toast-anchor *::selection{
276
+ background-color:rgba(209, 10, 10, 0.2);
277
+ background-color:rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-5));
227
278
  }
228
- .iui-toast.iui-negative > .iui-button{
229
- outline-color:var(--iui-color-foreground-negative);
279
+ .iui-toast.iui-negative > .iui-toast-anchor:hover{
280
+ color:#a10808;
281
+ color:var(--iui-color-foreground-negative-overlay);
230
282
  }
231
283
  .iui-toast.iui-warning{
232
284
  border-color:#f18d13;
@@ -245,17 +297,32 @@
245
297
  background-color:#f18d13;
246
298
  background-color:var(--iui-color-background-warning);
247
299
  }
248
- .iui-toast.iui-warning > .iui-anchor{
300
+ .iui-toast.iui-warning > .iui-toast-anchor{
249
301
  color:#f18d13;
302
+ -webkit-tap-highlight-color:rgba(241, 141, 19, 0.2);
250
303
  color:var(--iui-color-foreground-warning);
304
+ -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
251
305
  }
252
- .iui-toast.iui-warning > .iui-anchor:hover{
253
- color:#c6720c;
254
- color:var(--iui-color-foreground-warning-overlay);
306
+ .iui-toast.iui-warning > .iui-toast-anchor:focus-visible{
307
+ outline:1px solid var(--iui-color-foreground-warning);
308
+ outline-offset:1px;
309
+ }
310
+ @supports not selector(*:focus-visible){
311
+ .iui-toast.iui-warning > .iui-toast-anchor:focus{
312
+ outline:1px solid var(--iui-color-foreground-warning);
313
+ outline-offset:1px;
314
+ }
315
+ }
316
+ .iui-toast.iui-warning > .iui-toast-anchor::-moz-selection, .iui-toast.iui-warning > .iui-toast-anchor *::-moz-selection{
317
+ background-color:rgba(241, 141, 19, 0.2);
318
+ background-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
255
319
  }
256
- .iui-toast.iui-warning > .iui-anchor{
257
- outline-color:var(--iui-color-foreground-warning);
320
+ .iui-toast.iui-warning > .iui-toast-anchor::selection,
321
+ .iui-toast.iui-warning > .iui-toast-anchor *::selection{
322
+ background-color:rgba(241, 141, 19, 0.2);
323
+ background-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
258
324
  }
259
- .iui-toast.iui-warning > .iui-button{
260
- outline-color:var(--iui-color-foreground-warning);
325
+ .iui-toast.iui-warning > .iui-toast-anchor:hover{
326
+ color:#c6720c;
327
+ color:var(--iui-color-foreground-warning-overlay);
261
328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.53.3",
3
+ "version": "0.55.0",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -55,7 +55,8 @@
55
55
  "test:ci": "backstop --config=./backstop/backstop.js test --docker",
56
56
  "clean:images": "node scripts/removeOldTestImages.js",
57
57
  "print": "node scripts/print.js",
58
- "audit:ci": "audit-ci --moderate --report-type=full"
58
+ "audit:ci": "audit-ci --moderate --report-type=full",
59
+ "build-docker": "node scripts/buildDocker.js"
59
60
  },
60
61
  "devDependencies": {
61
62
  "audit-ci": "^4.0.0",
@@ -85,6 +86,7 @@
85
86
  "jpeg-js": "^0.4.3",
86
87
  "set-value": "^4.1.0",
87
88
  "ansi-regex": "^5.0.1",
88
- "node-fetch": "^2.6.7"
89
+ "node-fetch": "^2.6.7",
90
+ "async": "^3.2.2"
89
91
  }
90
92
  }
@@ -1,8 +1,9 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
- @import '../text/index';
4
+ @import '../anchor/index';
5
5
  @import '../icon/index';
6
+ @import '../text/index';
6
7
 
7
8
  @mixin iui-alert {
8
9
  @include iui-reset;
@@ -27,22 +28,12 @@
27
28
  }
28
29
 
29
30
  &-link {
31
+ @include iui-anchor-underline('on-initial');
32
+ border-radius: $iui-border-radius;
30
33
  cursor: pointer;
31
34
  margin-left: $iui-s;
32
- text-decoration: underline;
33
35
  user-select: none;
34
36
  white-space: nowrap;
35
- @include iui-focus;
36
- @include themed {
37
- color: t(iui-color-foreground-primary);
38
- }
39
-
40
- &:hover {
41
- text-decoration: none;
42
- @include themed {
43
- color: t(iui-color-foreground-primary-overlay);
44
- }
45
- }
46
37
  }
47
38
 
48
39
  > .iui-button {
@@ -83,18 +74,7 @@
83
74
  }
84
75
 
85
76
  #{$rootSelector}-link {
86
- border-radius: $iui-border-radius;
87
- @include themed {
88
- color: t(iui-color-foreground-#{$statusColor});
89
- }
90
-
91
- &:hover {
92
- @include themed {
93
- color: t(iui-color-foreground-#{$statusColor}-overlay);
94
- }
95
- }
96
-
97
- @include iui-focus($color: var(--iui-color-foreground-#{$statusColor}), $offset: 2px);
77
+ @include iui-anchor-status($statusColor);
98
78
  }
99
79
 
100
80
  > .iui-button {
@@ -0,0 +1,3 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import '../style/anchor'; // Reimports anchor from global styles
@@ -0,0 +1,7 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './index';
4
+
5
+ .iui-anchor {
6
+ @include iui-anchor;
7
+ }
@@ -0,0 +1,3 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './anchor';
@@ -1,8 +1,9 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
- @import '../icon/index';
4
+ @import '../anchor/index';
5
5
  @import '../button/borderless';
6
+ @import '../icon/index';
6
7
 
7
8
  @mixin iui-breadcrumbs {
8
9
  @include iui-reset;
package/scss/classes.scss CHANGED
@@ -3,6 +3,7 @@
3
3
  @import './style/index';
4
4
  @import './style/global';
5
5
  @import './alert/classes';
6
+ @import './anchor/classes';
6
7
  @import './badge/classes';
7
8
  @import './blockquote/classes';
8
9
  @import './breadcrumbs/classes';
@@ -1,6 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
+ @import '../anchor/index';
4
5
 
5
6
  @mixin iui-legal-footer {
6
7
  @include iui-reset;
@@ -161,6 +161,10 @@
161
161
  @include iui-header-button;
162
162
  }
163
163
 
164
+ .iui-header-dropdown-button.iui-header-dropdown-button {
165
+ @include iui-header-dropdown-button;
166
+ }
167
+
164
168
  .iui-header-split-button {
165
169
  @include iui-header-split-button;
166
170
  }
@@ -239,7 +243,6 @@
239
243
  height: 100%;
240
244
  border-radius: 0;
241
245
  overflow: hidden;
242
- padding-right: $iui-s;
243
246
 
244
247
  @include iui-header-button-focus;
245
248
 
@@ -313,6 +316,10 @@
313
316
  }
314
317
  }
315
318
 
319
+ @mixin iui-header-dropdown-button {
320
+ padding-right: $iui-s;
321
+ }
322
+
316
323
  @mixin iui-header-split-button {
317
324
  &,
318
325
  > * {
package/scss/index.scss CHANGED
@@ -2,6 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './style/index';
4
4
  @import './alert/index';
5
+ @import './anchor/index';
5
6
  @import './badge/index';
6
7
  @import './blockquote/index';
7
8
  @import './breadcrumbs/index';
@@ -2,6 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../icon/index';
5
+ @import '../text/index';
5
6
 
6
7
  $iui-active-outline: thin solid t(iui-color-foreground-primary);
7
8
 
@@ -149,6 +150,32 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
149
150
  }
150
151
  }
151
152
  }
153
+
154
+ &-skeleton {
155
+ --iui-menu-item-content-skeleton-max-width: 30%;
156
+ cursor: auto;
157
+
158
+ .iui-content {
159
+ max-width: var(--iui-menu-item-content-skeleton-max-width);
160
+ }
161
+
162
+ .iui-menu-label {
163
+ width: 100%;
164
+ height: $iui-font-size;
165
+ vertical-align: middle;
166
+ }
167
+
168
+ .iui-menu-description {
169
+ width: 70%;
170
+ height: $iui-font-size-small;
171
+ vertical-align: middle;
172
+ margin-top: $iui-xs;
173
+ }
174
+
175
+ &:hover {
176
+ background-color: unset;
177
+ }
178
+ }
152
179
  }
153
180
 
154
181
  @mixin iui-menu-content {
@@ -7,8 +7,8 @@
7
7
  @mixin iui-popover {
8
8
  &.tippy-box {
9
9
  &[data-reference-hidden] {
10
- visibility: visible;
11
- pointer-events: auto;
10
+ visibility: hidden;
11
+ pointer-events: none;
12
12
  }
13
13
 
14
14
  // Resets tippy.js default stylings that interfere with our own
@@ -15,8 +15,9 @@
15
15
  position: fixed;
16
16
  text-align: center;
17
17
  left: 50%;
18
- opacity: 0;
19
18
  top: $iui-baseline * 2;
19
+ opacity: 0;
20
+ z-index: 99;
20
21
  transform: translateX(-50%) translateY(-170%);
21
22
  transition: background-color $iui-speed-fast ease-in-out;
22
23
  @media (prefers-reduced-motion: no-preference) {
@@ -0,0 +1,79 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import './index';
4
+
5
+ @mixin iui-anchor {
6
+ --_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>");
7
+
8
+ @include iui-anchor-status('primary');
9
+ border-radius: $iui-border-radius;
10
+ cursor: pointer;
11
+
12
+ &-external::after {
13
+ content: '';
14
+ display: inline-block;
15
+ width: 1.5ch;
16
+ height: 1.5ch;
17
+ margin-left: 0.5ch;
18
+ vertical-align: -0.1ch;
19
+ background-color: currentColor;
20
+ mask: var(--_iui-anchor-external-svg);
21
+ @media (forced-colors: active) {
22
+ background-color: LinkText;
23
+ }
24
+ }
25
+
26
+ @include iui-anchor-underline('on-hover');
27
+
28
+ @media (prefers-contrast: more) {
29
+ @include iui-anchor-underline('on-initial');
30
+ }
31
+
32
+ @at-root {
33
+ .iui-theme-light &,
34
+ .iui-theme-dark & {
35
+ @include iui-anchor-underline('on-hover');
36
+ }
37
+ }
38
+
39
+ @at-root {
40
+ .iui-theme-light-hc &,
41
+ .iui-theme-dark-hc & {
42
+ @include iui-anchor-underline('on-initial');
43
+ }
44
+ }
45
+ }
46
+
47
+ @mixin iui-anchor-status($status: primary) {
48
+ @include iui-focus($color: var(--iui-color-foreground-#{$status}), $offset: 1px);
49
+ @include themed {
50
+ color: t(iui-color-foreground-#{$status});
51
+ -webkit-tap-highlight-color: rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-5));
52
+ }
53
+ @if $status != primary {
54
+ @include iui-text-selection($status);
55
+ }
56
+
57
+ &:hover {
58
+ @include themed {
59
+ color: t(iui-color-foreground-#{$status}-overlay);
60
+ }
61
+ }
62
+ }
63
+
64
+ /// $behavior should be one of: 'on-hover' or 'on-initial'
65
+ @mixin iui-anchor-underline($behavior: 'on-hover') {
66
+ @if $behavior == 'on-hover' {
67
+ text-decoration: none;
68
+
69
+ &:hover {
70
+ text-decoration: underline;
71
+ }
72
+ } @else {
73
+ text-decoration: underline;
74
+
75
+ &:hover {
76
+ text-decoration: none;
77
+ }
78
+ }
79
+ }
@@ -1,6 +1,7 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './index';
4
+ @import './anchor';
4
5
 
5
6
  html {
6
7
  @include theme-variables(light);
@@ -55,6 +56,10 @@ html {
55
56
  @include iui-anchor;
56
57
  }
57
58
 
59
+ .iui-visually-hidden {
60
+ @include visually-hidden;
61
+ }
62
+
58
63
  [class*='iui-'],
59
64
  [class*='iui-'] * {
60
65
  // Text highlight
@@ -46,23 +46,6 @@
46
46
  vertical-align: baseline;
47
47
  }
48
48
 
49
- @mixin iui-anchor {
50
- @include iui-focus($offset: 2px);
51
- border-radius: $iui-border-radius;
52
- text-decoration: none;
53
- cursor: pointer;
54
- @include themed {
55
- color: t(iui-color-foreground-primary);
56
- }
57
-
58
- &:hover {
59
- @include themed {
60
- color: t(iui-color-foreground-primary-overlay);
61
- }
62
- text-decoration: underline;
63
- }
64
- }
65
-
66
49
  @mixin iui-text-selection($status: primary) {
67
50
  &::selection,
68
51
  *::selection {
@@ -196,12 +196,12 @@
196
196
  }
197
197
  }
198
198
 
199
- > .iui-slot > .iui-more-options {
199
+ > .iui-slot:not(.iui-disabled) > .iui-more-options {
200
200
  visibility: visible;
201
201
  }
202
202
  }
203
203
 
204
- &:not(.iui-disabled):focus-within > .iui-slot > .iui-more-options {
204
+ &:focus-within > .iui-slot:not(.iui-disabled) > .iui-more-options {
205
205
  visibility: visible;
206
206
  }
207
207
 
@@ -295,15 +295,15 @@
295
295
  }
296
296
  }
297
297
 
298
- &.iui-disabled,
299
- &.iui-disabled + .iui-expanded-content {
298
+ .iui-cell.iui-disabled,
299
+ &.iui-expanded-content.iui-disabled {
300
300
  font-style: italic;
301
301
  cursor: not-allowed;
302
302
  @include themed {
303
303
  color: t(iui-text-color-muted);
304
304
  }
305
305
 
306
- &:hover > .iui-slot > .iui-more-options {
306
+ &.iui-slot:hover > .iui-more-options {
307
307
  visibility: hidden;
308
308
  }
309
309
 
@@ -1,13 +1,27 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './tag';
4
+ @import '../anchor/index';
4
5
 
5
6
  .iui-tag {
6
7
  @include iui-tag;
7
8
  }
8
9
 
9
- a.iui-tag {
10
+ .iui-tag-basic {
11
+ @include iui-tag-basic;
12
+ }
13
+
14
+ .iui-tag-label {
15
+ @include iui-tag-label;
16
+ }
17
+
18
+ .iui-tag-button {
19
+ @include iui-tag-button;
20
+ }
21
+
22
+ a.iui-tag-basic {
10
23
  @include iui-anchor;
24
+ @include iui-focus($offset: 1px);
11
25
  }
12
26
 
13
27
  .iui-tag-container {