@itwin/itwinui-css 2.5.0 → 3.0.0-dev.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +449 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +4 -14
  4. package/css/all.css +1 -1
  5. package/css/global.css +1 -1
  6. package/package.json +5 -5
  7. package/css/alert.css +0 -5
  8. package/css/anchor.css +0 -5
  9. package/css/avatar.css +0 -5
  10. package/css/backdrop.css +0 -5
  11. package/css/badge.css +0 -5
  12. package/css/blockquote.css +0 -5
  13. package/css/breadcrumbs.css +0 -5
  14. package/css/button.css +0 -5
  15. package/css/carousel.css +0 -5
  16. package/css/checkbox.css +0 -5
  17. package/css/code.css +0 -5
  18. package/css/color-picker.css +0 -5
  19. package/css/date-picker.css +0 -5
  20. package/css/dialog.css +0 -5
  21. package/css/expandable-block.css +0 -5
  22. package/css/fieldset.css +0 -5
  23. package/css/file-upload.css +0 -5
  24. package/css/footer.css +0 -5
  25. package/css/header.css +0 -5
  26. package/css/information-panel.css +0 -5
  27. package/css/input-container.css +0 -5
  28. package/css/input.css +0 -5
  29. package/css/keyboard.css +0 -5
  30. package/css/menu.css +0 -5
  31. package/css/non-ideal-state.css +0 -5
  32. package/css/overlay.css +0 -5
  33. package/css/progress-indicator.css +0 -5
  34. package/css/radio-tile.css +0 -5
  35. package/css/radio.css +0 -5
  36. package/css/searchbox.css +0 -5
  37. package/css/select.css +0 -5
  38. package/css/side-navigation.css +0 -5
  39. package/css/skip-to-content.css +0 -5
  40. package/css/slider.css +0 -5
  41. package/css/status-message.css +0 -5
  42. package/css/stepper.css +0 -5
  43. package/css/surface.css +0 -5
  44. package/css/table.css +0 -5
  45. package/css/tabs.css +0 -5
  46. package/css/tag.css +0 -5
  47. package/css/text.css +0 -5
  48. package/css/tile.css +0 -5
  49. package/css/time-picker.css +0 -5
  50. package/css/toast.css +0 -5
  51. package/css/toggle-switch.css +0 -5
  52. package/css/tooltip.css +0 -5
  53. package/css/transfer-list.css +0 -5
  54. package/css/tree.css +0 -5
  55. package/css/utils.css +0 -5
  56. package/css/workflow-diagram.css +0 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,453 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0-dev.1
4
+
5
+ ### Major Changes
6
+
7
+ - [#2262](https://github.com/iTwin/iTwinUI/pull/2262): `iui-select-tag` and related classes must now be used together with `iui-tag` (and related) classes. The `iui-select-tag-button-icon` class has been removed.
8
+
9
+ <details>
10
+
11
+ <summary>Diff</summary>
12
+
13
+ ```diff
14
+ - <span class="iui-select-tag">
15
+ + <span class="iui-select-tag iui-tag">
16
+ - <span class="iui-select-tag-label">
17
+ + <span class="iui-select-tag-label iui-tag-label">
18
+
19
+ </span>
20
+ <button
21
+ - class="iui-button iui-field iui-select-tag-button"
22
+ + class="iui-button iui-field iui-select-tag-button iui-tag-button"
23
+ aria-label="…"
24
+ >
25
+ - <svg class="iui-button-icon iui-select-tag-button-icon">…</svg>
26
+ + <svg class="iui-button-icon">…</svg>
27
+ </button>
28
+ </span>
29
+ ```
30
+
31
+ </details>
32
+
33
+ - [#2255](https://github.com/iTwin/iTwinUI/pull/2255): Replaces the attribute classes for `iui-checkbox` such as `iui-status`, `iui-disabled`, and `iui-loading` with new `data-iui-` attributes: `data-iui-status`, `data-iui-disabled`, and `data-iui-loading`.
34
+
35
+ ```diff
36
+ - <div class="iui-checkbox iui-positive">
37
+ + <div class="iui-checkbox" data-iui-status="positive">
38
+ ```
39
+
40
+ Possible values include: `"positive"`, `"negative"`, and `"warning"`.
41
+
42
+ ```diff
43
+ - <div class="iui-checkbox iui-disabled">
44
+ + <div class="iui-checkbox" data-iui-disabled="true">
45
+ ```
46
+
47
+ ```diff
48
+ - <div class="iui-checkbox iui-loading">
49
+ + <div class="iui-checkbox" data-iui-loading="true">
50
+ ```
51
+
52
+ - [#2493](https://github.com/iTwin/iTwinUI/pull/2493): `iui-tabs` no longer requires a `iui-not-animated` class. When `iui-animated` is not present, the "not animated" behavior will be automatically used.
53
+ - [#2346](https://github.com/iTwin/iTwinUI/pull/2346): Multi-select now requires different markup:
54
+
55
+ - The tag-container should be be rendered outside the select-button.
56
+ - The select-button requires an additional `data-iui-multi` attribute.
57
+ - For small size only, the tag-container requires an additional `data-iui-size` attribute.
58
+
59
+ <details>
60
+ <summary>Diff</summary>
61
+
62
+ ```diff
63
+ <div class='iui-input-with-icon'>
64
+ <div
65
+ role='combobox'
66
+ tabindex='0'
67
+ class='iui-select-button iui-field'
68
+ data-iui-size='small'
69
+ + data-iui-multi
70
+ >
71
+ - <span class='iui-content'>
72
+ - <div class='iui-select-tag-container'>…</div>
73
+ - </span>
74
+ </div>
75
+ <svg class='iui-end-icon'>…</svg>
76
+ + <span class='iui-content'>
77
+ + <div class='iui-select-tag-container' data-iui-size='small'>…</div>
78
+ + </span>
79
+ </div>
80
+ ```
81
+
82
+ </details>
83
+
84
+ - [#2136](https://github.com/iTwin/iTwinUI/pull/2136): Added a new `iui-fieldset-base` class that removes default `<fieldset>` styles. This class is now required when using `iui-fieldset`.
85
+
86
+ ```diff
87
+ - <fieldset class="iui-fieldset">
88
+ + <fieldset class="iui-fieldset-base iui-fieldset">
89
+ ```
90
+
91
+ - [#2255](https://github.com/iTwin/iTwinUI/pull/2255): The class `iui-radio` now depends on `iui-checkbox` for its styling. Additionally, `iui-radio-wrapper` is now replaced by `iui-checkbox-wrapper` for all `Radio` elements.
92
+
93
+ ```diff
94
+ - <label class="iui-radio-wrapper">
95
+ - <input class="iui-radio">
96
+ + <label class="iui-checkbox-wrapper">
97
+ + <input class="iui-checkbox iui-radio">
98
+ ```
99
+
100
+ - [#2487](https://github.com/iTwin/iTwinUI/pull/2487): In `Table`, `iui-table-empty` now is expected to be under `iui-table-body-extra` instead of `iui-table-body`.
101
+ - [#2469](https://github.com/iTwin/iTwinUI/pull/2469): `iui-tabs-wrapper`, `iui-tabs`, `iui-tab`, `iui-tabs-content`, `iui-tabs-actions-wrapper`, and `iui-tabs-actions` now require setting a new `data-iui-orientation` attribute. This change helps support nested tabs correctly.
102
+
103
+ **Note**: Nested tabs is _not_ recommended for UX related reasons.
104
+
105
+ <details>
106
+ <summary>Diff</summary>
107
+
108
+ ```diff
109
+ - <div class='iui-tabs-wrapper iui-horizontal'>
110
+ + <div class='iui-tabs-wrapper' data-iui-orientation="horizontal">
111
+ <div
112
+ class='iui-tabs'
113
+ + data-iui-orientation="horizontal"
114
+ >
115
+ <button
116
+ class='iui-tab'
117
+ + data-iui-orientation="horizontal"
118
+ >
119
+
120
+ </button>
121
+
122
+ <button
123
+ class="iui-button iui-button-base iui-field"
124
+ data-iui-variant="borderless"
125
+ >
126
+
127
+ </button>
128
+ </div>
129
+
130
+ <div
131
+ class='iui-tabs-actions-wrapper'
132
+ + data-iui-orientation="horizontal"
133
+ >
134
+ <div
135
+ class='iui-tabs-actions'
136
+ + data-iui-orientation="horizontal"
137
+ >
138
+
139
+ </div>
140
+ </div>
141
+
142
+ <div
143
+ class='iui-tabs-content'
144
+ + data-iui-orientation="horizontal"
145
+ >
146
+
147
+ </div>
148
+ </div>
149
+ ```
150
+
151
+ </details>
152
+
153
+ ### Minor Changes
154
+
155
+ - [#2040](https://github.com/iTwin/iTwinUI/pull/2040): Added hover state to disabled `.iui-field` and `.iui-list-item` to help with accessibility.
156
+ - [#2551](https://github.com/iTwin/iTwinUI/pull/2551): `iui-tree` now horizontally scrolls instead of truncation of `iui-tree-item`s when in horizontally overflowing `iui-tree`s.
157
+ - [#2524](https://github.com/iTwin/iTwinUI/pull/2524): Added `iui-popover` class to be used on the floating popover content's root.
158
+ - 8f01965a288e20d3840b91f5797675f03d7f6682: Visual changes to tabs for better accessibility and appearance when in theme bridge mode.
159
+
160
+ - Default tabs focus `outline-offset` inset more so to not obstruct the active tab stripe.
161
+ - Dividing line between borderless tabs and content area reduced to `1px` to give the active tab stripe a visual difference.
162
+ - Active borderless tab no longer has `background-color` change.
163
+ - Tab description / sublabel has `color` change with `transition`.
164
+ - Default disabled tab will now have the same background color as the default non-disabled tab.
165
+
166
+ - [#2373](https://github.com/iTwin/iTwinUI/pull/2373): Fixed an issue in `iui-input-flex-container` where the component-level focus styling was colliding with global focus styling, leading to double focus outlines.
167
+ - [#2391](https://github.com/iTwin/iTwinUI/pull/2391): Animation related classes are now deprecated: `.iui-enter`, `.iui-enter-active`, `.iui-exit`, `.iui-exit-active`.
168
+ - [#2493](https://github.com/iTwin/iTwinUI/pull/2493): `iui-tab` now supports `aria-current` (as an alternative to `aria-selected`) for indicating selected state.
169
+ - [#2554](https://github.com/iTwin/iTwinUI/pull/2554): Set `color` property to match the existing `fill` property value of icons when they are used inside a menu item or field components. This ensures consistent icon colors, i.e. when a font icon is used. Additionally, it enables referencing the icon's color value using the `currentColor` keyword.
170
+ - [#2135](https://github.com/iTwin/iTwinUI/pull/2135): Added a new `iui-table-column-manager` class for the column manager's floating content.
171
+ - [#2238](https://github.com/iTwin/iTwinUI/pull/2238): Collapsed `.iui-expandable-searchbox` will now hide its border and background in favor of the ones from the expand button.
172
+ - [#2655](https://github.com/iTwin/iTwinUI/pull/2655): Force text wrapping for long words. Affected component: 'Tile'
173
+
174
+ ### Patch Changes
175
+
176
+ - [#2359](https://github.com/iTwin/iTwinUI/pull/2359): The `Tooltip` now remains visible when hovered up to `4px` outside its border.
177
+ - [#2316](https://github.com/iTwin/iTwinUI/pull/2316): In `.iui-table-paginator`, the `.iui-center` gets a higher z-index over `.iui-left` and `.iui-right`.
178
+ - [#2266](https://github.com/iTwin/iTwinUI/pull/2266): All instances of `user-select: all` have been removed. Affected components: `code`, `information-panel`, `slider`, `stepper`, `tile`.
179
+ - [#2596](https://github.com/iTwin/iTwinUI/pull/2596): Fixed `iui-transfer-list-listbox-wrapper` to now properly handle long strings in the list items.
180
+ - [#2323](https://github.com/iTwin/iTwinUI/pull/2323): Ensured that `.iui-toast-wrapper` does not block clicks when used within other portal containers (e.g. from AppUI).
181
+ - [#2281](https://github.com/iTwin/iTwinUI/pull/2281): `iui-input` with "small" size now has the same height as other field elements with "small" size (e.g. `iui-button`).
182
+ - [#2143](https://github.com/iTwin/iTwinUI/pull/2143): Added `border-radius` to the `.iui-table` class so that the border radius is correctly applied to the table's corners.
183
+ - [#2362](https://github.com/iTwin/iTwinUI/pull/2362): `iui-select-button` now has the same height as other field elements with "small" size such as `iui-input`.
184
+ - [#2152](https://github.com/iTwin/iTwinUI/pull/2152): `iui-breadcrumbs-list` now stretches to the width of `iui-breadcrumbs`.
185
+ - [#2618](https://github.com/iTwin/iTwinUI/pull/2618): `iui-tree-node` hover styles only applied when hover is supported.
186
+ - [#2386](https://github.com/iTwin/iTwinUI/pull/2386): Fixed an issue in `iui-tile-name` where a long string without spaces wasn't wrapping properly.
187
+ - [#2551](https://github.com/iTwin/iTwinUI/pull/2551): Fixed `iui-tree` where the `iui-tree-item`s now stretch to the full width of the horizontally scrolling `iui-tree`.
188
+ - [#2347](https://github.com/iTwin/iTwinUI/pull/2347): `input` and `textarea` inside `.iui-input-flex-container` now properly get `cursor: not-allowed` when disabled.
189
+ - [#2147](https://github.com/iTwin/iTwinUI/pull/2147): Fixed grid blowout in `iui-expandable-content` using `grid-template-columns: minmax(0, 1fr)`.
190
+ - [#2574](https://github.com/iTwin/iTwinUI/pull/2574): `iui-button-group` no longer has overlapping borders between adjacent iTwinUI borderless buttons.
191
+ - [#2641](https://github.com/iTwin/iTwinUI/pull/2641): Changed `.iui-list-item`'s `background-color` on `:hover`.
192
+ - [#2374](https://github.com/iTwin/iTwinUI/pull/2374): Fix fill of svgs in `iui-header-breadcrumb-button`.
193
+ - [#2615](https://github.com/iTwin/iTwinUI/pull/2615): Borders for `iui-table-header` and `iui-table-cell` have been made more subtle.
194
+ - [#2431](https://github.com/iTwin/iTwinUI/pull/2431): Force text wrapping for long words in typography components (`iui-text-…`) and a few other text instances in other components (e.g. `iui-non-ideal-state-title`, `iui-stepper-step`, `iui-workflow-diagram-step`, etc.).
195
+ - [#2139](https://github.com/iTwin/iTwinUI/pull/2139): Added `overlow: auto` to `.iui-tree` to provide more consistent styling across components.
196
+ - [#2127](https://github.com/iTwin/iTwinUI/pull/2127): Fixed an issue in `iui-dialog`, where long titles were not wrapping properly.
197
+ - [#2378](https://github.com/iTwin/iTwinUI/pull/2378): Fix folder variant `iui-tile`'s broken layout when it has a long name.
198
+ - [#2457](https://github.com/iTwin/iTwinUI/pull/2457): Fixed bug in `.iui-button-base` where cursor was `pointer` even when it was disabled.
199
+ - [#2497](https://github.com/iTwin/iTwinUI/pull/2497): Fixed `.iui-tile-thumbnail-badge-container` bug where it is not visible within `.iui-tile-thumbnail`.
200
+ - [#2590](https://github.com/iTwin/iTwinUI/pull/2590): Fix draggable `iui-dialog-title-bar-filled` to also work properly on touch devices.
201
+
202
+ ## 3.0.0-dev.0
203
+
204
+ ### Major Changes
205
+
206
+ - [#1919](https://github.com/iTwin/iTwinUI/pull/1919): `.iui-breadcrumbs-content` now requires `.iui-button .iui-field` and `data-iui-variant="borderless"`.
207
+
208
+ ```diff
209
+ <button
210
+ - class="iui-breadcrumbs-content"
211
+ + class="iui-button iui-button-base iui-field iui-breadcrumbs-content"
212
+ + data-iui-variant="borderless"
213
+ >
214
+ ```
215
+
216
+ When used with `<a>`, the same button classes must be used, and the content must be wrapped in a `<span>`. As a result, the anchor's hover state will now be more consistent with the button's hover state.
217
+
218
+ ```diff
219
+ <a
220
+ - class="iui-anchor iui-breadcrumbs-content"
221
+ + class="iui-anchor iui-button-base iui-button iui-field iui-breadcrumbs-content"
222
+ + data-iui-variant="borderless"
223
+ >
224
+ + <span>
225
+
226
+ + </span>
227
+ </a>
228
+ ```
229
+
230
+ - [#1919](https://github.com/iTwin/iTwinUI/pull/1919): `.iui-select-tag-button` now requires `.iui-button .iui-field` and `data-iui-variant="borderless"`.
231
+
232
+ ```diff
233
+ <button
234
+ - class="iui-select-tag-button"
235
+ + class="iui-button iui-field iui-select-tag-button"
236
+ + data-iui-variant="borderless"
237
+ >
238
+ ```
239
+
240
+ Similarly, `.iui-select-tag-button-icon` also requires `.iui-button-icon`.
241
+
242
+ ```diff
243
+ - <span class="iui-select-tag-button-icon">
244
+ + <span class="iui-select-tag-button-icon iui-button-icon">
245
+ ```
246
+
247
+ - [#1891](https://github.com/iTwin/iTwinUI/pull/1891): `.iui-table-row[data-iui-loading]` has been replaced with a new `iui-table-body-extra` class, which must be set on an element _outside_ the table-body.
248
+
249
+ ```diff
250
+ <div class="iui-table">
251
+
252
+ <div class="iui-table-body">
253
+
254
+ - <div class="iui-table-row" data-iui-loading="true">
255
+ - <div class="iui-table-cell">
256
+ - <div class="iui-progress-indicator-radial"></div>
257
+ - </div>
258
+ - </div>
259
+ </div>
260
+ + <div class="iui-table-body-extra" data-iui-loading="true">
261
+ + <div class="iui-progress-indicator-radial"></div>
262
+ + </div>
263
+ </div>
264
+ ```
265
+
266
+ - [#1919](https://github.com/iTwin/iTwinUI/pull/1919): `.iui-table-paginator-page-button` now requires the same markup as borderless buttons. The `.iui-table-paginator-page-button-small` modifier class has been removed.
267
+
268
+ ```diff
269
+ <button
270
+ - class="iui-table-paginator-page-button iui-table-paginator-page-button-small"
271
+ + class="iui-table-paginator-page-button iui-button iui-button-base iui-field"
272
+ + data-iui-variant="borderless"
273
+ + data-iui-size="small"
274
+ >
275
+ ```
276
+
277
+ As a result, the small paginator will now have a smaller width than before.
278
+
279
+ - [#1963](https://github.com/iTwin/iTwinUI/pull/1963): All styles have been wrapped in a cascade layer named `itwinui`.
280
+ - [#1919](https://github.com/iTwin/iTwinUI/pull/1919): `.iui-sidenav-button.iui-expand` now requires `.iui-button .iui-field` and `data-iui-size="small"`.
281
+
282
+ ```diff
283
+ <button
284
+ - class="iui-button iui-button-base iui-sidenav-button iui-expand"
285
+ + class="iui-button iui-button-base iui-sidenav-button iui-field iui-expand"
286
+ + data-iui-size="small"
287
+ >
288
+ ```
289
+
290
+ - [#1915](https://github.com/iTwin/iTwinUI/pull/1915): `iui-anchor` must now be explicitly added to `<a>` elements, in addition to the previous `iui-alert-link`, `iui-breadcrumbs-content`, `iui-tag-basic`, and `iui-toast-anchor` classes.
291
+
292
+ ```diff
293
+ -<a class="iui-alert-link">
294
+ +<a class="iui-anchor iui-alert-link">
295
+ ```
296
+
297
+ ```diff
298
+ -<a class="iui-breadcrumbs-content">
299
+ +<a class="iui-anchor iui-breadcrumbs-content">
300
+ ```
301
+
302
+ ```diff
303
+ -<a class="iui-tag-basic">
304
+ +<a class="iui-anchor iui-tag-basic">
305
+ ```
306
+
307
+ ```diff
308
+ -<a class="iui-toast-anchor">
309
+ +<a class="iui-anchor iui-toast-anchor">
310
+ ```
311
+
312
+ Additionally, all `<a>` elements within `iui-legal-footer` elements will need the `iui-anchor` class.
313
+
314
+ ```diff
315
+ <li class="iui-legal-footer-item">
316
+ - <a>...</a>
317
+ + <a class="iui-anchor>...</a>
318
+ </li>
319
+ ```
320
+
321
+ - [#1932](https://github.com/iTwin/iTwinUI/pull/1932): All individual component CSS files have been removed. Instead, import `all.css` (the root export).
322
+
323
+ ```diff
324
+ - @import "@itwin/itwinui-css/css/anchor.css";
325
+ - @import "@itwin/itwinui-css/css/button.css";
326
+
327
+ + @import "@itwin/itwinui-css";
328
+ ```
329
+
330
+ - [#1919](https://github.com/iTwin/iTwinUI/pull/1919): Added `.iui-field` class to be used with `.iui-button`, `.iui-input`, and `.iui-select-button`. These components now have consistent styling for base, hover and disabled states.
331
+
332
+ ```diff
333
+ <button
334
+ - class="iui-button iui-button-base"
335
+ + class="iui-button iui-button-base iui-field"
336
+ >
337
+ ```
338
+
339
+ ```diff
340
+ <input
341
+ - class="iui-input"
342
+ + class="iui-input iui-field"
343
+ >
344
+ ```
345
+
346
+ ```diff
347
+ <div
348
+ - class="iui-select-button"
349
+ + class="iui-select-button iui-field"
350
+ >
351
+ ```
352
+
353
+ - [#1919](https://github.com/iTwin/iTwinUI/pull/1919): Ideas button now requires `.iui-button-idea` and `data-iui-variant="high-visibility"` instead of `data-iui-variant="idea"`.
354
+
355
+ ```diff
356
+ <button
357
+ - class="iui-button iui-button-base"
358
+ + class="iui-button iui-button-base iui-field iui-button-idea"
359
+ - data-iui-variant="idea"
360
+ + data-iui-variant="high-visibility"
361
+ >
362
+ ```
363
+
364
+ - [#2101](https://github.com/iTwin/iTwinUI/pull/2101): `.iui-tile-thumbnail-type-indicator` and `.iui-tile-thumbnail-quick-action` should now be applied on wrapper element, and the button inside should have the new `.iui-tile-thumbnail-button` class. This reduces code complexity and fixes a visual bug with the hover state.
365
+
366
+ ```diff
367
+ + <div class="iui-tile-thumbnail-quick-action">
368
+ <button
369
+ - class="iui-field iui-button-base iui-button iui-tile-thumbnail-quick-action"
370
+ + class="iui-field iui-button-base iui-button iui-tile-thumbnail-button"
371
+ data-iui-variant="borderless"
372
+ data-iui-size="small"
373
+ >
374
+
375
+ </button>
376
+ + </div>
377
+ ```
378
+
379
+ - [#1935](https://github.com/iTwin/iTwinUI/pull/1935): Replaces the size classes for `iui-avatar` with a new `data-iui-size` attribute.
380
+
381
+ ```diff
382
+ - <div class="iui-avatar iui-small">
383
+ + <div class="iui-avatar" data-iui-size="small">
384
+ ```
385
+
386
+ Possible values include: `"small"`, `"medium"`, `"large"`, and `"x-large"`. Defaults to `"medium"`.
387
+
388
+ - [#1938](https://github.com/iTwin/iTwinUI/pull/1938): `iui-breadcrumbs` will need to be added to the classes of all `iui-header-breadcrumbs` elements. `iui-breadcrumbs-list` will also need to be added to the classes of all `iui-header-breadcrumbs-list` elements.
389
+
390
+ ```diff
391
+ - <nav class="iui-header-breadcrumbs">
392
+ - <ol class="iui-header-breadcrumbs-list">
393
+ + <nav class="iui-breadcrumbs iui-header-breadcrumbs">
394
+ + <ol class="iui-breadcrumbs-list iui-header-breadcrumbs-list">
395
+ ```
396
+
397
+ ### Minor Changes
398
+
399
+ - [#1863](https://github.com/iTwin/iTwinUI/pull/1863): The filter button inside a Table will now always be visible, instead of only being shown on hover/focus.
400
+ - [#1915](https://github.com/iTwin/iTwinUI/pull/1915): `iui-anchor` can now be styled with status colors using a new `data-iui-status` attribute.
401
+
402
+ ```html
403
+ <a class="iui-anchor" data-iui-status="negative">...</a>
404
+ ```
405
+
406
+ Possible values include: `"positive"`, `"negative"`, `"informational"`, and `"warning"`.
407
+
408
+ - [#2058](https://github.com/iTwin/iTwinUI/pull/2058): Added loading state to `iui-button`, via the `data-iui-loading` attribute and the `iui-button-spinner` class.
409
+
410
+ ```html
411
+ <button class="iui-button" data-iui-loading="true" aria-disabled="true">
412
+ <span>Click me</span>
413
+ <div class="iui-progress-indicator-radial iui-button-spinner" data-iui-indeterminate="true"></div>
414
+ </button>
415
+ ```
416
+
417
+ - [#2058](https://github.com/iTwin/iTwinUI/pull/2058): Added `iui-button-label` class to be used on the `<span>` containing the text inside a button.
418
+ - [#2060](https://github.com/iTwin/iTwinUI/pull/2060): Added support for `popover` attribute in `iui-tooltip`.
419
+ - [#2076](https://github.com/iTwin/iTwinUI/pull/2076): Added a new `data-iui-has-popover` attribute to `iui-button` to be applied when the button has an associated popover/dropdown-menu that is currently open.
420
+
421
+ ```html
422
+ <button class="iui-button" data-iui-has-popover="open"></button>
423
+ ```
424
+
425
+ - [#2088](https://github.com/iTwin/iTwinUI/pull/2088): `.iui-field` handles icon fill, used within button and select.
426
+ - [#1935](https://github.com/iTwin/iTwinUI/pull/1935): The default size for an `iui-avatar` element that appears inside of an `iui-tile` is now the same default size as all other `iui-avatar` elements. Setting `data-iui-size` to `"x-large"` will give the `iui-avatar` the size of the old default.
427
+
428
+ ```diff
429
+ <div class="iui-tile-thumbnail-icon">
430
+ - <span class="iui-avatar"></span>
431
+ + <span class="iui-avatar" data-iui-size="x-large"></span>
432
+ </div>
433
+ ```
434
+
435
+ ### Patch Changes
436
+
437
+ - [#2064](https://github.com/iTwin/iTwinUI/pull/2064): `transform` values in dialog and expandable-block have been rounded to help avoid blurry text on Windows.
438
+ - [#1916](https://github.com/iTwin/iTwinUI/pull/1916): Fixed the hover background for default tabs.
439
+ - [#2042](https://github.com/iTwin/iTwinUI/pull/2042): Fix table empty state horizontal alignment when table is very narrow.
440
+ - [#2074](https://github.com/iTwin/iTwinUI/pull/2074): Fix indentation of tree node without expander button.
441
+ - [#2021](https://github.com/iTwin/iTwinUI/pull/2021): `.iui-menu-item` also handles `button` elements.
442
+ - [#1955](https://github.com/iTwin/iTwinUI/pull/1955): Fixed a regression in `iui-tabs` where the panel content was not occupying the full width of the container.
443
+ - [#1943](https://github.com/iTwin/iTwinUI/pull/1943): Fixed a z-index issue in `Table` where the `iui-table-resizer` appeared above the sticky header cells.
444
+ - [#2030](https://github.com/iTwin/iTwinUI/pull/2030): Updated selectors in `button-group` to only consider `iui-field` and `iui-input-flex-container` children.
445
+ - [#2083](https://github.com/iTwin/iTwinUI/pull/2083): Fixed a visual bug where elements like `iui-button-icon` inside the `iui-button` were not hidden when the button was in a loading state. Now, `data-iui-loading="true"` on `iui-button` hides _all_ its children except `iui-button-spinner`.
446
+ - [#2054](https://github.com/iTwin/iTwinUI/pull/2054): Remove unnecessary gap below `.iui-input-grid` when `data-iui-label-placement='inline'` and when no secondary line (`iui-status-message`) is present.
447
+ - [#1921](https://github.com/iTwin/iTwinUI/pull/1921): Fixed carousel dot button's incorrect height.
448
+ - [#2043](https://github.com/iTwin/iTwinUI/pull/2043): Adjusted the behavior of buttons so that double tapping them doesn't zoom the viewport on iOS.
449
+ - [#1909](https://github.com/iTwin/iTwinUI/pull/1909): Remove `margin-block` from badge.
450
+
3
451
  ## 2.5.0
4
452
 
5
453
  ### Minor Changes
@@ -20,7 +468,7 @@
20
468
  - [#1884](https://github.com/iTwin/iTwinUI/pull/1884): Fixes bug that caused the `.iui-tabs-wrapper` to change size dependent on which `.iui-tab` was active.
21
469
  - [#1828](https://github.com/iTwin/iTwinUI/pull/1828): The `.iui-svg-icon` inside the `.iui-searchbox` no longer has the same width as `.iui-button`. Its width also no longer changes with the `.iui-searchbox` size. This is because its padding behavior is now similar to `.iui-svg-icon`'s padding behavior, where it uses a constant padding.
22
470
  - [#1894](https://github.com/iTwin/iTwinUI/pull/1894): All instances of `box-sizing: content-box` have been reinforced with `!important` to prevent accidental overrides from application styles.
23
- - [#1906](https://github.com/iTwin/iTwinUI/pull/1906): Dialog title will now wrap to multiple lines instead of getting clippped.
471
+ - [#1906](https://github.com/iTwin/iTwinUI/pull/1906): Dialog title will now wrap to multiple lines instead of getting clipped.
24
472
  - [#1881](https://github.com/iTwin/iTwinUI/pull/1881): `.iui-search-input` and `.iui-search-icon` are now no-op. This is because the main objective of these two classes was collapsing the padding between the icon and `input`/`textarea` in `.iui-input-flex-container`, and that is now handled by `.iui-input-flex-container-icon` instead.
25
473
 
26
474
  ## 2.4.0
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2021-2024 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2021-2025 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
package/README.md CHANGED
@@ -37,31 +37,25 @@ If you're looking for React components, check out [`@itwin/itwinui-react`](https
37
37
  Install both packages:
38
38
 
39
39
  ```
40
- npm install @itwin/itwinui-css @itwin/itwinui-variables
41
- ```
42
-
43
- or if using yarn:
44
-
45
- ```
46
- yarn add @itwin/itwinui-css @itwin/itwinui-variables
40
+ npm add @itwin/itwinui-css @itwin/itwinui-variables
47
41
  ```
48
42
 
49
43
  ---
50
44
 
51
45
  ## Usage
52
46
 
53
- Import the global styles and variables (only needs to be done once per page):
47
+ Import both packages (only needs to be done once per page):
54
48
 
55
49
  ```css
56
50
  @import '@itwin/itwinui-variables';
57
- @import '@itwin/itwinui-css/global';
51
+ @import '@itwin/itwinui-css';
58
52
  ```
59
53
 
60
54
  > **Note**: If your project doesn't support export maps, then you might need to import the css from the real paths:
61
55
  >
62
56
  > ```css
63
57
  > @import '@itwin/itwinui-variables/index.css';
64
- > @import '@itwin/itwinui-css/css/global.css';
58
+ > @import '@itwin/itwinui-css/css/all.css';
65
59
  > ```
66
60
 
67
61
  Apply the `iui-root` class at the root of your app, and use `data-iui-theme` to specify theme (`light` or `dark`). See [`@itwin/itwinui-variables/README.md`](https://github.com/iTwin/iTwinUI/blob/main/packages/itwinui-variables/README.md) for more details on theming.
@@ -74,10 +68,6 @@ Apply the `iui-root` class at the root of your app, and use `data-iui-theme` to
74
68
 
75
69
  Now you can start using our components:
76
70
 
77
- ```css
78
- @import '@itwin/itwinui-css/css/button.css';
79
- ```
80
-
81
71
  ```html
82
72
  <button class="iui-button" data-iui-variant="default">
83
73
  <span>Hello world</span>