|
1 | 1 | # Change Log
|
2 | 2 |
|
| 3 | +## 1.0.0-next.36 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- Search: New compound API ([#2708](https://github.com/digdir/designsystemet/pull/2708)) |
| 8 | + |
| 9 | +- Radio + Checkbox: ([#2607](https://github.com/digdir/designsystemet/pull/2607)) |
| 10 | + - Use `label` prop instead of `children` as label text |
| 11 | + - Remove `Radio.Group` and `Checkbox.Group` and use `Fieldset` instead |
| 12 | + |
| 13 | +### Minor Changes |
| 14 | + |
| 15 | +- React components and css now support custom colors through the `data-color` attribute. ([#2703](https://github.com/digdir/designsystemet/pull/2703)) |
| 16 | + |
| 17 | + **BREAKING CHANGE**: All React components that had a `color` prop have been changed to use `data-color`. |
| 18 | + |
| 19 | + All<sup>1</sup> css targeting `data-color` has been changed to work with all custom colors generated by the CLI. |
| 20 | + |
| 21 | + `Avatar`, `Badge`, `Button`, and `Link` use `--ds-color-accent-*`<sup>2</sup>, unless `data-color` is set directly on the element. |
| 22 | + |
| 23 | + For components that had a `color` prop, but defaulted to something other than `"accent"`, `data-color` must also be set directly on the element. |
| 24 | + |
| 25 | + All other components that defaulted to `"accent"`, or previously only existed in `"accent"` color, now support `data-color`. They will also inherit their color from the closest `data-color` attribute. If none is found, they use `--ds-color-accent-*`<sup>2</sup>. |
| 26 | + |
| 27 | + <sup>1</sup>: ...except `Alert`, which only supports `info`, `warning`, `danger` and `success` colors. |
| 28 | + <sup>2</sup>: If an `"accent"` color is not defined in the theme, the `--ds-color-accent-*` variables will point to the first `main-color`. |
| 29 | + |
| 30 | +- Implemented a more flexible system of semantic border-radius tokens. ([#2497](https://github.com/digdir/designsystemet/pull/2497)) |
| 31 | + |
| 32 | +### Patch Changes |
| 33 | + |
| 34 | +- Accordion: Fix chevron abandoning parent in scroll container ([#2699](https://github.com/digdir/designsystemet/pull/2699)) |
| 35 | + |
| 36 | +- SkipLink: Add css variables ([#2626](https://github.com/digdir/designsystemet/pull/2626)) |
| 37 | + |
| 38 | +- ValidationMessage: Add icon when `error={true}` ([#2596](https://github.com/digdir/designsystemet/pull/2596)) |
| 39 | + |
| 40 | +- ValidationMessage: fix icon abandoning the component when scrolling ([#2646](https://github.com/digdir/designsystemet/pull/2646)) |
| 41 | + |
| 42 | +- Accordion: Add css variable for chevron ([#2626](https://github.com/digdir/designsystemet/pull/2626)) |
| 43 | + |
| 44 | +- CSS: base sizing on font-size so all components can have all sizes, and naturally inherits size from context ([#2541](https://github.com/digdir/designsystemet/pull/2541)) |
| 45 | + |
| 46 | +- CSS: Move default background-color to `<body>` element ([#2754](https://github.com/digdir/designsystemet/pull/2754)) |
| 47 | + |
| 48 | +- Dropdown: Add `Dropdown.Button` for more explicit API ([#2694](https://github.com/digdir/designsystemet/pull/2694)) |
| 49 | + |
| 50 | +- Breadcrumbs: Add css variable for chevron ([#2626](https://github.com/digdir/designsystemet/pull/2626)) |
| 51 | + |
| 52 | +- Input: Sufficient color contrast for readonly ([#2621](https://github.com/digdir/designsystemet/pull/2621)) |
| 53 | + |
| 54 | +- Alert: fix icon abandoning the component when scrolling ([#2648](https://github.com/digdir/designsystemet/pull/2648)) |
| 55 | + |
| 56 | +- chip: Fix wrong font sizes ([#2595](https://github.com/digdir/designsystemet/pull/2595)) |
| 57 | + |
| 58 | +- Button: Fix SVG and images shrinking in flex containers ([#2612](https://github.com/digdir/designsystemet/pull/2612)) |
| 59 | + |
| 60 | +- Fieldset: Move to compound components `Fieldset.Legend` and `Fieldset.Description` ([#2705](https://github.com/digdir/designsystemet/pull/2705)) |
| 61 | + |
| 62 | +- Table: add `z-index` to stickhy header ([#2761](https://github.com/digdir/designsystemet/pull/2761)) |
| 63 | + |
| 64 | +- Tooltip: Add more variables ([#2626](https://github.com/digdir/designsystemet/pull/2626)) |
| 65 | + |
| 66 | +- Button: Use font-weight `--ds-font-weight-medium` ([#2618](https://github.com/digdir/designsystemet/pull/2618)) |
| 67 | + |
| 68 | +- Field: Adds `<Field>` component wrapping and connecting internal form elements for better accessibility ([#2502](https://github.com/digdir/designsystemet/pull/2502)) |
| 69 | + |
| 70 | +- Chip: Use correct `32px` height to align nicely with `<Tag>` ([#2683](https://github.com/digdir/designsystemet/pull/2683)) |
| 71 | + |
| 72 | +- Combobox: fix overflow on screens narrower than ~340px ([#2570](https://github.com/digdir/designsystemet/pull/2570)) |
| 73 | + |
| 74 | +- Label: Fix icon abandoning parent in scroll container ([#2699](https://github.com/digdir/designsystemet/pull/2699)) |
| 75 | + |
| 76 | +- Label: Use data attributes for styling ([#2588](https://github.com/digdir/designsystemet/pull/2588)) |
| 77 | + |
| 78 | + ValidationMessage: Use data attributes for styling |
| 79 | + |
| 80 | +- Select + Textarea: ([#2571](https://github.com/digdir/designsystemet/pull/2571)) |
| 81 | + |
| 82 | + - Remove `label`, `hideLabel`, `description`, `characterLimit` and `error` as these will be part of `Field` API |
| 83 | + |
| 84 | +- Pagination: Add css variable for chevron ([#2626](https://github.com/digdir/designsystemet/pull/2626)) |
| 85 | + |
| 86 | +- Field.Affix: ([#2793](https://github.com/digdir/designsystemet/pull/2793)) |
| 87 | + |
| 88 | + - Rename `Field.AffixWrapper` to `Field.Affixes` |
| 89 | + - Support inputs with `size` attribute |
| 90 | + |
| 91 | +- Remove `baseline` layer and fix layerorder for typography ([#2588](https://github.com/digdir/designsystemet/pull/2588)) |
| 92 | + |
| 93 | +- Modal backdrop was invisible in some browser versions. See https://caniuse.com/mdn-css_selectors_backdrop_inherit_from_originating_element for affected versions. ([#2615](https://github.com/digdir/designsystemet/pull/2615)) |
| 94 | + |
| 95 | +- Table: Add `Table.Foot` and style caption ([#2744](https://github.com/digdir/designsystemet/pull/2744)) |
| 96 | + |
3 | 97 | ## 1.0.0-next.35
|
4 | 98 |
|
5 | 99 | ### Patch Changes
|
|
0 commit comments