-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into layout-next
- Loading branch information
Showing
8 changed files
with
159 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
'braid-design-system': major | ||
--- | ||
|
||
Drop support for React 17.x | ||
|
||
To enable Braid to leverage newer React APIs, we are no longer providing support for React v17.x. | ||
React 18 was released in March 2022 and consumers were encouraged to upgrade to this as part of the Braid v32 release in Feb 2023 (which dropped React 16 support). | ||
|
||
Removing support for React 17 allows us to simplify and streamline a lot of our component APIs, which will have downstream improvements on consumer codebases. | ||
|
||
### MIGRATION GUIDE: | ||
Consumers still on v17 should follow the [How to Upgrade to React 18 guide]. | ||
|
||
For [sku] consumers who upgraded to Braid v32 and added the "`jsx-runtime` workaround for ESM incompatibility", this can now be safely removed from their webpack configuration once updated to React 18: | ||
|
||
```diff | ||
// sku.config.ts | ||
{ | ||
dangerouslySetWebpackConfig: (config) => | ||
webpackMerge(config, { | ||
- resolve: { | ||
- fallback: { | ||
- 'react/jsx-runtime': require.resolve('react/jsx-runtime'), | ||
- }, | ||
- }, | ||
}), | ||
} | ||
``` | ||
|
||
[sku]: https://seek-oss.github.io/sku/ | ||
[How to Upgrade to React 18 guide]: https://react.dev/blog/2022/03/08/react-18-upgrade-guide | ||
[migration guide]: https://seek-oss.github.io/braid-design-system/releases#32.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'braid-design-system': major | ||
--- | ||
|
||
--- | ||
updated: | ||
- Column | ||
--- | ||
|
||
**Column:** Prevent growing when `content` width specified | ||
|
||
Ensure that when a column `width` is specified, the column does not grow or shrink. | ||
Only a column with no `width` specified will fluidly adapt to the available space. | ||
|
||
Fixes a bug when all `Column` components have a defined `width`, a column specifying `content` width would incorrectly grow to consume the available space. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'braid-design-system': major | ||
--- | ||
|
||
--- | ||
updated: | ||
- Stack | ||
--- | ||
|
||
**Stack:** Set default text alignment based on `align` | ||
|
||
As a convenience, the `align` prop sets the text alignment for the container, meaning any nested `Text` or `Heading` components will inherit this alignment by default. | ||
|
||
This can be overridden by setting the alignment explicitly on the relevant `Text` or `Heading` component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters