@itwin/itwinui-css 2.0.0-dev.9 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,514 +1,68 @@
1
1
  # Changelog
2
2
 
3
- ## 2.0.0-dev.9
3
+ ## 2.0.0
4
4
 
5
- ### Major Changes
6
-
7
- - [#1573](https://github.com/iTwin/iTwinUI/pull/1573): Removed background from color-picker, date-picker/time-picker, and column-filter. Use `iui-surface` class to add it back.
8
- - [#1577](https://github.com/iTwin/iTwinUI/pull/1577): `iui-scroll` modifier is no longer needed on `iui-menu`.
9
- - [#1556](https://github.com/iTwin/iTwinUI/pull/1556): Items inside button-group no longer need a wrapping `<div>`.
10
- - [#1559](https://github.com/iTwin/iTwinUI/pull/1559): Changed `iui-button-group-vertical` class to `iui-button-group` with attribute `data-iui-orientation="vertical"`.
5
+ Welcome to the v2 release of `@itwin/itwinui-css`. 🎉
11
6
 
12
- ## 2.0.0-dev.8
7
+ This release includes a few breaking changes which have been listed below. For more details, see the [migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-css-v2-migration-guide).
13
8
 
14
9
  ### Major Changes
15
10
 
11
+ - [#1548](https://github.com/iTwin/iTwinUI/pull/1548): Using `aria-selected` instead of `iui-active` in Tabs to set active styling.
12
+ - [#1446](https://github.com/iTwin/iTwinUI/pull/1446): `iui-avatar` has been refactored to be a single `<span>`, and the status is now applied using the `data-iui-status` attribute. The colors have been updated to pass AAA contrast ratio.
13
+ - [#1548](https://github.com/iTwin/iTwinUI/pull/1548): Combined tabs stripe variables: `--iui-stripe-left` and `--iui-stripe-top` into `--iui-tabs-stripe-position`; `--iui-stripe-width` and `--iui-stripe-height` into `--iui-tabs-stripe-size`.
16
14
  - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): `iui-transfer-list-listbox-label` and `iui-input-container` classes were removed.
15
+ - [#1255](https://github.com/iTwin/iTwinUI/pull/1255): `iui-folder` is updated to use `display: grid`. `iui-tile-name` is now moved outside of `iui-tile-content` for folder variant.
16
+ - [#1420](https://github.com/iTwin/iTwinUI/pull/1420): `<div class="iui-radio-tile-content">` has been removed from radio-tile. Also, `data-iui-disabled` attribute must be set on the radio-tile for browsers that don't support `:has` (firefox).
17
+ - [#1573](https://github.com/iTwin/iTwinUI/pull/1573): Removed background from color-picker, date-picker/time-picker, and column-filter. Use `iui-popover-surface` class to add it back.
18
+ - [#1489](https://github.com/iTwin/iTwinUI/pull/1489): `--iui-color-dot-inset` has been split into `--iui-color-dot-inset-block` and `--iui-color-dot-inset-inline`.
19
+ - [#1369](https://github.com/iTwin/iTwinUI/pull/1369): The `iui-breadcrumbs-item-overrides` class name has been removed. Breadcrumbs items now use the `iui-breadcrumbs-content` class name.
20
+ - [#1577](https://github.com/iTwin/iTwinUI/pull/1577): `iui-scroll` modifier is no longer needed on `iui-menu`.
21
+ - [#1626](https://github.com/iTwin/iTwinUI/pull/1626): Improved carousel accessibility and changed the markup so that the dots are present before the slides.
17
22
  - [#1529](https://github.com/iTwin/iTwinUI/pull/1529): Removed location-marker component.
23
+ - [#1469](https://github.com/iTwin/iTwinUI/pull/1469): Replaced `iui-slider-vertical` class modifier with `data-iui-orientation`.
24
+ - `iui-slider-rail` class is now `::before` pseudo element of `iui-slider`.
25
+ - [#1322](https://github.com/iTwin/iTwinUI/pull/1322): Removed input-container code from `utils.css` in favor of `input-container.css`.
26
+ - [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Renamed the following expandable-block classes: `iui-header`, `iui-icon`, `iui-title`, `iui-caption` to be scoped to expandable-block.
27
+ - Updated the following modifier classes to be data attributes: `iui-expanded`, `iui-small`, `iui-borderless`.
28
+ - [#1370](https://github.com/iTwin/iTwinUI/pull/1370): `iui-progress-indicator-linear` has been refactored to be a single `<div>`. Size, status, indeterminate variant, animation, etc are now specified using data attributes.
18
29
  - [#1523](https://github.com/iTwin/iTwinUI/pull/1523): Removed `iui-tooltip-container` and `iui-tooltip-visible` classes. The display is now toggled using the `hidden` HTML attribute, and the positioning should be managed using custom JS/CSS.
30
+ - [#1302](https://github.com/iTwin/iTwinUI/pull/1302): `border-box` will now be set for _all_ elements under `iui-root`.
31
+ - [#1610](https://github.com/iTwin/iTwinUI/pull/1610): Replaced `--iui-surface-border-color` with `--iui-surface-border` for full customization of border. Also removed `--iui-surface-border-radius` and `--iui-surface-background-color`.
32
+ - [#1328](https://github.com/iTwin/iTwinUI/pull/1328): `iui-progress-overlay` has been renamed to `iui-overlay` and moved to `overlay.scss`.
33
+ - [#1295](https://github.com/iTwin/iTwinUI/pull/1295): `iui-menu-item` and `iui-menu-description` classes were removed.
34
+ - [#1548](https://github.com/iTwin/iTwinUI/pull/1548): `data-iui-scroll-placement` attributes in Tabs were removed. Updated tabs start and end masks to be applied on scroll animation.
35
+ - [#1356](https://github.com/iTwin/iTwinUI/pull/1356): `iui-progress-radial` has been refactored to be a single `<div>` instead of using a nested svg. Size and status have been moved to data attributes. Also it is recommended to explicitly set `size` when using in other components.
36
+ - [#1556](https://github.com/iTwin/iTwinUI/pull/1556): Items inside button-group no longer need a wrapping `<div>`.
37
+ - [#1304](https://github.com/iTwin/iTwinUI/pull/1304): Instead of cloning passed icons to set classes on them, the classes will now be set on a wrapping element. Affected components: `Header`, `Select`, `MenuItem`, `RadioTile`, `Tabs`, `Tile`, `ToggleSwitch`, `TreeNode`, `InputContainer` (and all input variants).
38
+ - [#1559](https://github.com/iTwin/iTwinUI/pull/1559): Changed `iui-button-group-vertical` class to `iui-button-group` with attribute `data-iui-orientation="vertical"`.
39
+ - [#1548](https://github.com/iTwin/iTwinUI/pull/1548): The `iui-tabs` element has changed from `<ul>` to `<div>`. `iui-tabs` children are no longer wrapped in an `<li>` element.
40
+ - [#1247](https://github.com/iTwin/iTwinUI/pull/1247): Replaced the `iui-alert-icon`, `iui-alert-button`, and `iui-alert-button-icon` class names with `iui-svg-icon`, `iui-button`, and `iui-button-icon` respectively.
41
+ - [#1269](https://github.com/iTwin/iTwinUI/pull/1269): All dialog variants have `flex` applied by default. This means the content should be wrapped with `Dialog.Content` or `ModalContent` for optimal layout.
42
+ - [#1548](https://github.com/iTwin/iTwinUI/pull/1548): The `iui-tab-label` wrapper class has been removed. The `iui-tab-label` class now applies to the `<span>` which holds the tab's label. `iui-tab-description` is now a `<span>` element.
43
+ - [#1270](https://github.com/iTwin/iTwinUI/pull/1270): Change `line-height` to use a unitless value.
19
44
 
20
45
  ### Minor Changes
21
46
 
22
47
  - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-input-group-wrapper` class to allow inline labels for input groups.
48
+ - [#1373](https://github.com/iTwin/iTwinUI/pull/1373): Converted all physical CSS properties to their logical equivalents.
23
49
  - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-input-grid` class for outer input styling.
24
50
  - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added status styling to `input` and `select`.
51
+ - [#1565](https://github.com/iTwin/iTwinUI/pull/1565): Updated menu styling and added `iui-popover-surface` class for standalone popovers.
52
+ - [#1073](https://github.com/iTwin/iTwinUI/pull/1073): Added new `TransferList` component which is used to move one or more items between lists. Added the following subcomponents: `TransferList.ListWrapper`, `TransferList.ListboxWrapper`, `TransferList.ListboxLabel`, `TransferList.Listbox`, `TransferList.Item`, and `TransferList.Toolbar`
25
53
  - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added padded styling to Icon using `data-iui-padded` attribute.
26
- - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-status-message` class to wrap StatusMessage icon and content.
27
-
28
- ## 2.0.0-dev.7
29
-
30
- ### Major Changes
31
-
32
- - [#1446](https://github.com/iTwin/iTwinUI/pull/1446): `iui-avatar` has been refactored to be a single `<span>`, and the status is now applied using the `data-iui-status` attribute. The colors have been updated to pass AAA contrast ratio.
33
- - [#1489](https://github.com/iTwin/iTwinUI/pull/1489): `--iui-color-dot-inset` has been split into `--iui-color-dot-inset-block` and `--iui-color-dot-inset-inline`.
34
-
35
- ### Patch Changes
36
-
37
- - [#1499](https://github.com/iTwin/iTwinUI/pull/1499): Removed special handling of iPhone notch in Header and SideNavigation.
38
-
39
- ## 2.0.0-dev.6
40
-
41
- ### Major Changes
42
-
43
- - [#1420](https://github.com/iTwin/iTwinUI/pull/1420): `<div class="iui-radio-tile-content">` has been removed from radio-tile. Also, `data-iui-disabled` attribute must be set on the radio-tile for browsers that don't support `:has` (firefox).
44
-
45
- ## 2.0.0-dev.5
46
-
47
- ### Major Changes
48
-
49
- - [#1369](https://github.com/iTwin/iTwinUI/pull/1369): The `iui-breadcrumbs-item-overrides` class name has been removed. Breadcrumbs items now use the `iui-breadcrumbs-content` class name.
50
- - [#1354](https://github.com/iTwin/iTwinUI/pull/1354): The following class names have been updated:
51
-
52
- - `iui-header` -> `iui-expandable-header`
53
- - `iui-icon` -> `iui-expandable-block-icon`
54
- - `iui-title` -> `iui-expandable-block-title`
55
- - `iui-caption` -> `iui-expandable-block-caption`
56
-
57
- The following class names have been removed and updated to be data attributes:
58
-
59
- - `iui-expanded` -> `data-iui-expanded` (boolean)
60
- - `iui-small` -> `data-iui-size` (default or small)
61
- - `iui-borderless` -> `data-iui-variant` (default or borderless)
62
-
63
- - [#1370](https://github.com/iTwin/iTwinUI/pull/1370): `iui-progress-indicator-linear` has been refactored to be a single `<div>`. Size, status, indeterminate variant, animation, etc are now specified using data attributes.
64
- - [#1328](https://github.com/iTwin/iTwinUI/pull/1328): 'iui-progress-overlay' has been renamed to 'iui-overlay' and moved to 'overlay.scss'
65
-
66
- ### Minor Changes
67
-
68
- - [#1373](https://github.com/iTwin/iTwinUI/pull/1373): Converted all physical CSS properties to their logical equivalents.
69
-
70
- ### Patch Changes
71
-
72
- - [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Expandable block animation now uses pure css instead of javascript for transitioning.
73
-
74
- ## 2.0.0-dev.4
75
-
76
- ### Major Changes
77
-
78
- - [#1255](https://github.com/iTwin/iTwinUI/pull/1255): `iui-folder` is updated to use `display: grid`. `iui-tile-name` is now moved outside of `iui-tile-content` for folder variant.
79
- - [#1356](https://github.com/iTwin/iTwinUI/pull/1356): `iui-progress-radial` has been refactored to be a single `<div>` instead of using a nested svg. Size and status have been moved to data attributes. Also it is recommended to explicitly set `size` when using in other components.
80
-
81
- ### Minor Changes
82
-
83
54
  - [#1362](https://github.com/iTwin/iTwinUI/pull/1362): All elements under the root will now get a default focus styling matching `--iui-color-border-accent`.
55
+ - [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-status-message` class to wrap StatusMessage icon and content.
84
56
  - [#1363](https://github.com/iTwin/iTwinUI/pull/1363): `iui-svg-icon` now supports controlling size and fill using `--iui-svg-size` and `--iui-svg-fill` custom properties.
85
57
 
86
- ## 2.0.0-dev.3
87
-
88
58
  ### Patch Changes
89
59
 
60
+ - [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Expandable block animation now uses pure css instead of javascript for transitioning.
61
+ - [#1609](https://github.com/iTwin/iTwinUI/pull/1609): Adjusted padding value for `Surface.Body`.
62
+ - [#1632](https://github.com/iTwin/iTwinUI/pull/1632): Adjusted gap between adjacent icons in searchbox.
90
63
  - [#1351](https://github.com/iTwin/iTwinUI/pull/1351): `.iui-toast-anchor` can now be applied on a `<button>`.
64
+ - [#1499](https://github.com/iTwin/iTwinUI/pull/1499): Removed special handling of iPhone notch in Header and SideNavigation.
91
65
 
92
- ## 2.0.0-dev.2
93
-
94
- ### Major Changes
95
-
96
- - [#1247](https://github.com/iTwin/iTwinUI/pull/1247): Replaced the `iui-alert-icon`, `iui-alert-button`, and `iui-alert-button-icon` class names with `iui-svg-icon`, `iui-button`, and `iui-button-icon` respectively.
97
-
98
- ### Patch Changes
99
-
100
- - [#1310](https://github.com/iTwin/iTwinUI/pull/1310): Fix vertical centering for some inputs after unitless `line-height` change.
101
-
102
- ## 2.0.0-dev.1
103
-
104
- ### Major Changes
105
-
106
- - [#1322](https://github.com/iTwin/iTwinUI/pull/1322): Removed input-container code from `utils.css` in favor of `input-container.css`.
107
- - [#1302](https://github.com/iTwin/iTwinUI/pull/1302): `border-box` will now be set for _all_ elements under `iui-root`.
108
-
109
- ### Minor Changes
110
-
111
- - [#1073](https://github.com/iTwin/iTwinUI/pull/1073): Added new `TransferList` component which is used to move one or more items between lists. Added the following subcomponents: `TransferList.ListWrapper`, `TransferList.ListboxWrapper`, `TransferList.ListboxLabel`, `TransferList.Listbox`, `TransferList.Item`, and `TransferList.Toolbar`
112
-
113
- ## 2.0.0-dev.0
114
-
115
- ### Major Changes
116
-
117
- - [#1295](https://github.com/iTwin/iTwinUI/pull/1295): `iui-menu-item` and `iui-menu-description` classes were removed.
118
- - [#1304](https://github.com/iTwin/iTwinUI/pull/1304): Instead of cloning passed icons to set classes on them, the classes will now be set on a wrapping element. Affected components: `Header`, `Select`, `MenuItem`, `RadioTile`, `Tabs`, `ToggleSwitch`, `TreeNode`, `InputContainer` (and all input variants).
119
- - [#1269](https://github.com/iTwin/iTwinUI/pull/1269): All dialog variants have `flex` applied by default. This means the content should be wrapped with `Dialog.Content` or `ModalContent` for optimal layout.
120
- - [#1270](https://github.com/iTwin/iTwinUI/pull/1270): Change `line-height` to use a unitless value.
121
-
122
- ## 1.12.4
123
-
124
- ### Patch Changes
125
-
126
- - [#1575](https://github.com/iTwin/iTwinUI/pull/1575): ProgressRadial now stays inside container when size="x-small".
127
-
128
- ## 1.12.3
129
-
130
- ### Patch Changes
131
-
132
- - [#1516](https://github.com/iTwin/iTwinUI/pull/1516): Update SearchBox placeholder color to match Input.
133
-
134
- ## 1.12.2
135
-
136
- ### Patch Changes
137
-
138
- - [#1485](https://github.com/iTwin/iTwinUI/pull/1485): Improved color contrast for input and select placeholder text.
139
- - [#1501](https://github.com/iTwin/iTwinUI/pull/1501): Fixed a small misalignment in Table when using sticky columns.
140
-
141
- ## 1.12.1
142
-
143
- ### Patch Changes
144
-
145
- - [#1494](https://github.com/iTwin/iTwinUI/pull/1494): Updated color-picker dot so its outline adapts dynamically to the backgrounds for better contrast.
146
-
147
- ## 1.12.0
148
-
149
- ### Minor Changes
150
-
151
- - [#1422](https://github.com/iTwin/iTwinUI/pull/1422): Changed `all: revert` to `all: revert-layer` so that only styles from the v1 layer are reverted, thus avoiding issues with inadvertently removing browser default styles. This rule has also been moved from `all.css` to `revert-v1.css`.
152
-
153
- ## 1.11.5
154
-
155
- ### Patch Changes
156
-
157
- - [#1424](https://github.com/iTwin/iTwinUI/pull/1424): Fixed a few different resizing issues in Dialog.
158
-
159
- ## 1.11.4
160
-
161
- ### Patch Changes
162
-
163
- - [#1421](https://github.com/iTwin/iTwinUI/pull/1421): Fixed an issue in Table where column reordering and editable cells were not working when v2 Table was used within a v1 app.
164
-
165
- ## 1.11.3
166
-
167
- ### Patch Changes
168
-
169
- - [#1410](https://github.com/iTwin/iTwinUI/pull/1410): Fixed an issue in `Tabs` where tabs-list was becoming too tall when the tabpanel didn't have enough content inside.
170
-
171
- ## 1.11.2
172
-
173
- ### Patch Changes
174
-
175
- - [#1376](https://github.com/iTwin/iTwinUI/pull/1376): Fix issue where a nested expandable block's expander icon would always display as expanded.
176
-
177
- ## 1.11.1
178
-
179
- ### Patch Changes
180
-
181
- - [#1288](https://github.com/iTwin/iTwinUI/pull/1288): Fixed hover styling for SearchBox.
182
-
183
- ## 1.11.0
184
-
185
- ### Minor Changes
186
-
187
- - [#863](https://github.com/iTwin/iTwinUI/pull/863): SearchBox - Add `iui-input-flex-container` class for inputs with icons and buttons within
188
- - Add `iui-searchbox` class for Searchbox
189
- - Add `iui-expandable-searchbox` class for Searchbox that can be expanded
190
- - Add `iui-search-icon` for styling icons within search
191
- - [#1060](https://github.com/iTwin/iTwinUI/pull/1060): Tabs - Added data attribute 'data-iui-overflow' - when true it adds styling for overflow tabs
192
-
193
- ### Patch Changes
194
-
195
- - [#1275](https://github.com/iTwin/iTwinUI/pull/1275): Fixed an issue where `ProgressRadial` was not correctly showing when used inside a v2 boundary within a v1 page.
196
- - [#1251](https://github.com/iTwin/iTwinUI/pull/1251): Reorganized source file structure. Should have no changes in the CSS output.
197
- - [#1271](https://github.com/iTwin/iTwinUI/pull/1271): Added `color` declaration to `iui-keyboard`.
198
- - [#1257](https://github.com/iTwin/iTwinUI/pull/1257): Fixed an issue where pseudo elements inside a v2 boundary were not reverting v1 styles.
199
-
200
- ## 1.10.3
201
-
202
- ### Patch Changes
203
-
204
- - [#1245](https://github.com/iTwin/iTwinUI/pull/1245): Adjusted Checkbox so that its clickable target area is 24pxx24px by default (increased from 16x16) and 32x32 when used in a Table selection column.
205
-
206
- ## 1.10.2
207
-
208
- ### Patch Changes
209
-
210
- - [#1235](https://github.com/iTwin/iTwinUI/pull/1235): Changed the internal DOM structure of `LabeledInput` and `LabeledTextarea` to prefer explicit association over implicit. The `<label>` is now associated with the input using `htmlFor`/`id` and the container is a generic div.
211
-
212
- This change improves accessibility, with no API changes and no effect on visuals.
213
-
214
- ## 1.10.1
215
-
216
- ### Patch Changes
217
-
218
- - [#1215](https://github.com/iTwin/iTwinUI/pull/1215): Code component when used inside an Anchor will now have correct styling.
219
-
220
- ## 1.10.0
221
-
222
- ### Minor Changes
223
-
224
- - [#1106](https://github.com/iTwin/iTwinUI/pull/1106): Added new List and ListItem components.
225
-
226
- ```jsx
227
- <List>
228
- <ListItem>item 1</ListItem>
229
- <ListItem>item 2</ListItem>
230
- <ListItem>item 3</ListItem>
231
- </List>
232
- ```
233
-
234
- ## 1.9.0
235
-
236
- ### Minor Changes
237
-
238
- - c8f6a8dd: Add surface component with included layout for header, body, and button footer.
239
-
240
- ### Patch Changes
241
-
242
- - 3ad916b2: Allows alert messages to break when words are long.
243
- - f1e0d8d6: Allows toast messages to break when words are long.
244
-
245
- ## 1.8.0
246
-
247
- ### Minor Changes
248
-
249
- - 61f44293: Added new `isDateDisabled` prop to DatePicker. Accepts a function which takes a date and returns a boolean to indicate whether that date is not selectable.
250
- - 8bfd4fe9: Add predefined status variants for badge.
251
- - c581e9ed: Added a utils components `iui-link-box` and `iui-link-action` to provide better accessibility experience with actions on elements.
252
- Updated Tile focus state when `iui-link-action` is present.
253
-
254
- Usage example:
255
-
256
- ```html
257
- <div class="iui-link-box">
258
- <a class="iui-link-action" href="/new-page">Test content</a>
259
- </div>
260
- ```
261
-
262
- ### Patch Changes
263
-
264
- - 01d29fc1: Fixed an issue in Firefox where the right edge of the `Table` header was misaligned with the table body.
265
- - e2f547e1: Fixed a visual glitch in Tile thumbnail when hovering.
266
- - 028d4cd7: Updated actionable tile to have a more prominent hover effect.
267
- - 775933e3: The DOM order of Tile content has changed so that the name comes before the thumbnail region. This improves accessibility without affecting visuals.
268
- - 91486634: Modals and dialogs will have improved overflow behavior on smaller screen sizes with a lot of text.
269
- - 6f99039c: Fixed an issue with stepper when the last item is active.
270
- - 17d4fffb: Omit `border-radius` on adjacent active menu items.
271
-
272
- ## 1.7.0
273
-
274
- ### Minor Changes
275
-
276
- - 85af52c6: Add small size toggle switch option using `size` prop as follows: `<ToggleSwitch size='small' />`
277
- - 1b541699: Added a new FileUploadCard component which serves as a default UI for when a single file is uploaded. This can also be used as a child of FileUpload
278
-
279
- ```jsx
280
- <FileUploadCard />
281
- ```
282
-
283
- ```jsx
284
- const [files, setFiles] = React.useState<File[]>([]);
285
-
286
- <FileUpload
287
- onFileDropped={(files) => {
288
- setFiles(files);
289
- }}
290
- >
291
- <FileUploadCard files={files} onFilesChange={(files) => setFiles(files)} />
292
- </FileUpload>
293
- ```
294
-
295
- ### Patch Changes
296
-
297
- - 62c4a6da: Fixed issue where checkbox / radio border appeared above `:focus` outline.
298
-
299
- ## 1.6.0
300
-
301
- ### Minor Changes
302
-
303
- - 2397ee0c: All styles will now be scoped and always take preference over previous major versions (`@itwin/itwinui-react`@`1.x`).
304
-
305
- This enables incremental adoption of `@itwin/itwinui-react`@`2.x` for some parts of the app, while still using `1.x` for the rest of the app.
306
-
307
- To use this feature, make sure that all parts that use v1 are updated to `@itwin/itwinui-css@0.63.2`, and then wrap the v2 parts in `ThemeProvider`:
308
-
309
- ```html
310
- <body>
311
- <!-- rest of your app (v1) -->
312
-
313
- <ThemeProvider>
314
- <!-- new UI built using v2 -->
315
- </ThemeProvider>
316
- </body>
317
- ```
318
-
319
- For packages, there is a new theme `'inherit'`. Setting this enables scoping without forcing the default light theme. When the app eventually updates to v2, it can use its own `ThemeProvider` with any theme, and the components inside your package will inherit the app's theme.
320
-
321
- ```html
322
- <body>
323
- <!-- rest of the app (maybe v1) -->
324
-
325
- <!-- inside your package ⬇️ -->
326
- <ThemeProvider theme='inherit'>
327
- <!-- v2 components inside package -->
328
- </ThemeProvider>
329
- </bod
330
- ```
331
-
332
- ## 1.5.5
333
-
334
- ### Patch Changes
335
-
336
- - b2831ddb: Fix expandable rows not displaying when height is set on table and `overflow-y` is present.
337
-
338
- ## 1.5.4
339
-
340
- ### Patch Changes
341
-
342
- - e1efed3b: Fix Table status icon fill not overriding svg's fill attribute.
343
-
344
- ## 1.5.3
345
-
346
- ### Patch Changes
347
-
348
- - 27c23b31: Tooltip's background now has a blur filter to make text more readable.
349
-
350
- ## 1.5.2
351
-
352
- ### Patch Changes
353
-
354
- - 2845b4f4: Fixed a bug where inline elements (e.g. links) were getting disrupted when using inside a checkbox label.
355
-
356
- ## 1.5.1
357
-
358
- ### Patch Changes
359
-
360
- - d3844a07: Dialog content won't overflow off smaller screen sizes when the content is too big
361
-
362
- ## 1.5.0
363
-
364
- ### Minor Changes
365
-
366
- - 06476ada: Added new `Flex` utility component and optional `Flex.Spacer`/`Flex.Item` subcomponents to make it easier to work with CSS flexbox and use iTwinUI design tokens for gap.
367
-
368
- ```jsx
369
- <Flex gap='xl' justifyContent='center'>
370
- <div>...</div>
371
- <div>...</div>
372
- </Flex>
373
- ```
374
-
375
- ```jsx
376
- <Flex>
377
- <Flex.Item>...</Flex.Item>
378
- <Flex.Spacer />
379
- <Flex.Item>...</Flex.Item>
380
- <Flex.Item>...</Flex.Item>
381
- </Flex>
382
- ```
383
-
384
- ### Patch Changes
385
-
386
- - fd2e5239: Alert: close button's focus color now matches the status color.
387
- - a1a8c74d: Resizable dialog now has a min height set so that it always includes the button bar.
388
-
389
- ## 1.4.0
390
-
391
- ### Minor Changes
392
-
393
- - f7caf384: \* Added new `iui-tabs-actions-wrapper` and `iui-tabs-actions` to `.iui-tabs-wrapper` to add right/bottom content to the horizontal/vertical tabs.
394
-
395
- ```html
396
- <div class="iui-tabs-wrapper iui-horizontal">
397
- <ul class="iui-tabs iui-default">
398
- ...
399
- </ul>
400
-
401
- <div class="iui-tabs-actions-wrapper">
402
- <div class="iui-tabs-actions">...</div>
403
- </div>
404
-
405
- <div class="iui-tabs-content">...</div>
406
- </div>
407
- ```
408
-
409
- - dd13257f: Added new `iui-svg-icon` class for displaying svgs
410
-
411
- - Supports `data-iui-icon-size` attribute for size. Can be one of: 's', 'm', 'l', 'auto'
412
- - Supports `data-iui-icon-color` attribute for fill. Can be one of: 'informational', 'positive', 'warning', 'negative'
413
-
414
- ```html
415
- <span
416
- class="iui-svg-icon"
417
- data-iui-icon-size="m"
418
- data-iui-icon-color="positive"
419
- >
420
- <svg>...</svg>
421
- </span>
422
- ```
423
-
424
- ### Patch Changes
425
-
426
- - ec26b72d: `Anchor` can now be rendered as a button using `as` prop.
427
-
428
- ```jsx
429
- <Anchor as='button' onClick={() => {}}>
430
- ...
431
- </Anchor>
432
- ```
433
-
434
- ## [1.3.0](https://www.github.com/iTwin/iTwinUI/compare/v1.2.2...v1.3.0) (2022-12-19)
435
-
436
- ### Minor changes
437
-
438
- - **Tag:** Tag body receives focus instead of close button within it ([#835](https://www.github.com/iTwin/iTwinUI/issues/835))
439
-
440
- ### Patch changes
441
-
442
- - **Inputs:** border color changes to status color on hover ([#847](https://www.github.com/iTwin/iTwinUI/issues/847))
443
- - **ToggleSwitch:** Define height of toggle switch to display correctly in iOS ([#852](https://www.github.com/iTwin/iTwinUI/issues/852))
444
-
445
- ## [1.2.2](https://www.github.com/iTwin/iTwinUI/compare/v1.2.1...v1.2.2) (2022-12-09)
446
-
447
- ### Patch changes
448
-
449
- - **Select:** Use correct placeholder text color ([#846](https://www.github.com/iTwin/iTwinUI/issues/846))
450
-
451
- ## [1.2.1](https://www.github.com/iTwin/iTwinUI/compare/v1.2.0...v1.2.1) (2022-12-08)
452
-
453
- ### Patch changes
454
-
455
- - **Code:** Remove `user-select: all` and extra declarations ([#836](https://www.github.com/iTwin/iTwinUI/issues/836))
456
-
457
- ## [1.2.0](https://www.github.com/iTwin/iTwinUI/compare/v1.1.0...v1.2.0) (2022-12-06)
458
-
459
- ### Minor changes
460
-
461
- - **ExpandableBlock:** Add disabled state support through `disabled`/`aria-disabled` attribute on the toggle ([#821](https://www.github.com/iTwin/iTwinUI/issues/821))
462
- - **`iui-root`**: Add `.iui-root-background` modifier to opt into setting the recommended background-color ([#833](https://www.github.com/iTwin/iTwinUI/issues/833))
463
-
464
- ## [1.1.0](https://www.github.com/iTwin/iTwinUI/compare/v1.0.0...v1.1.0) (2022-12-01)
465
-
466
- ### Minor changes
467
-
468
- - **ComboBox:** Add multi-select tags ([#817](https://www.github.com/iTwin/iTwinUI/issues/817))
469
-
470
- ### Patch changes
471
-
472
- - **Avatar:** Sizes have lower specificity, use CSS vars. ([#818](https://www.github.com/iTwin/iTwinUI/issues/818))
473
- - **Progress-indicator**: Overlay now intercepts clicks ([#827](https://www.github.com/iTwin/iTwinUI/issues/827))
474
- - **Slider:** Change align `start` to `flex-start` ([#825](https://www.github.com/iTwin/iTwinUI/issues/825))
475
-
476
- ## [1.0.0](https://www.github.com/iTwin/iTwinUI/compare/v0.63.1...v1.0.0) (2022-11-14)
477
-
478
- Welcome to the v1 release of iTwinUI-css. 🎉
479
-
480
- The API is now considered "stable" and going forward there will be no more breaking changes in minor version bumps.
481
-
482
- Some of the highlights from this release include:
483
-
484
- - The `@itwin/itwinui-css` package is now CSS-only. Sass files are no longer part of the deliverable.
485
- - A new `@itwin/itwinui-variables` package has been introduced to replace Sass variables.
486
- - Scoped themes support, allowing styling only part of the page or mixing themes in different parts of the page.
487
- - Major visual updates across all themes.
488
- - Base themes pass WCAG 2.1 level AA requirements, high contrast themes pass level AAA.
489
- - Dark theme has received a complete overhaul.
490
- - Major visual updates across all components.
491
- - Rounded corners in most components (using `--iui-border-radius-1`).
492
- - More consistent elevation by ensuring lighter backgounds (`--iui-color-background`) appear above darker ones (`--iui-color-background-backdrop`).
493
- - Alert and toast have a brand new look.
494
- - Baseline height has increased by 1px, resulting in height changes in many components.
495
- - Switched all sizes from `px` to `rem` to respect base font-size set in user preferences.
496
- - Changes to class names and data attributes (see migration guide).
497
- - Renamed and reorganized a few component files.
498
- - `inputs.css` has been split into `input.css`, `checkbox.css`, `radio.css`, `select.css`, etc.
499
- - `user-icon.css` is now `avatar.css`.
500
- - `wizard.css` has been split into `stepper.css` and `workflow-diagram.css`.
501
- - A few utility components have been combined into `utils.css`.
502
- - Dropped IE11 support, removing any fallbacks for CSS variables, CSS grid, etc.
503
- - New font families: _Noto Sans_ and _Noto Sans Mono_.
504
- - Lots of bug fixes and improvements.
505
-
506
- If you're interested in more details,
507
-
508
- - check out our [iTwinUI-css v1 migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-v1-migration-guide) for a full list of changes in all components.
509
- - check out our [iTwinUI-variables v1 migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-variables-v1-migration-guide) for how the old Sass variables map to the new CSS variables.
510
- - check out a full diff of code changes in [`v0.63.1..v1.0.0`](https://www.github.com/iTwin/iTwinUI/compare/v0.63.1...v1.0.0).
511
-
512
- ## 0.X
66
+ ## 1.x
513
67
 
514
- For any changes prior to 1.0.0, check out the [0.X changelog](https://github.com/iTwin/iTwinUI/blob/legacy/v0-css/packages/itwinui-css/CHANGELOG.md).
68
+ For any changes prior to 2.0.0, check out the [1.X changelog](https://github.com/iTwin/iTwinUI/blob/legacy/v2/packages/itwinui-css/CHANGELOG.md).