braid-design-system 31.18.0 → 31.19.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 +75 -0
- package/codemod/dist/wrapper.js +147902 -158837
- package/css/atoms.docs.tsx +7 -7
- package/css/breakpoints.docs.tsx +4 -4
- package/css/colorModeStyle.docs.tsx +3 -3
- package/css/globalHeadingStyle.docs.tsx +2 -2
- package/css/globalTextStyle.docs.tsx +2 -2
- package/css/responsiveStyle.docs.tsx +2 -2
- package/css/vars.docs.tsx +3 -6
- package/lib/components/Accordion/Accordion.docs.tsx +1 -1
- package/lib/components/Accordion/Accordion.gallery.tsx +1 -1
- package/lib/components/Accordion/Accordion.screenshots.tsx +1 -1
- package/lib/components/Actions/Actions.docs.tsx +1 -1
- package/lib/components/Actions/Actions.gallery.tsx +1 -1
- package/lib/components/Actions/Actions.screenshots.tsx +1 -1
- package/lib/components/Alert/Alert.docs.tsx +1 -1
- package/lib/components/Alert/Alert.gallery.tsx +1 -1
- package/lib/components/Alert/Alert.screenshots.tsx +1 -1
- package/lib/components/Autosuggest/Autosuggest.docs.tsx +1 -1
- package/lib/components/Autosuggest/Autosuggest.gallery.tsx +1 -1
- package/lib/components/Autosuggest/Autosuggest.screenshots.tsx +1 -1
- package/lib/components/Badge/Badge.docs.tsx +1 -1
- package/lib/components/Badge/Badge.gallery.tsx +1 -1
- package/lib/components/Badge/Badge.screenshots.tsx +1 -1
- package/lib/components/Bleed/Bleed.docs.tsx +1 -1
- package/lib/components/Bleed/Bleed.gallery.tsx +1 -1
- package/lib/components/Bleed/Bleed.screenshots.tsx +1 -1
- package/lib/components/Box/Box.docs.tsx +3 -3
- package/lib/components/Box/BoxRenderer.screenshots.tsx +1 -1
- package/lib/components/BraidPortal/BraidPortal.docs.tsx +1 -1
- package/lib/components/BraidProvider/BraidProvider.docs.tsx +1 -1
- package/lib/components/BraidTestProvider/BraidTestProvider.docs.tsx +1 -1
- package/lib/components/Button/Button.docs.tsx +1 -1
- package/lib/components/Button/Button.gallery.tsx +1 -1
- package/lib/components/Button/Button.screenshots.tsx +37 -2
- package/lib/components/Button/Button.tsx +9 -5
- package/lib/components/ButtonIcon/ButtonIcon.docs.tsx +1 -1
- package/lib/components/ButtonIcon/ButtonIcon.gallery.tsx +1 -1
- package/lib/components/ButtonIcon/ButtonIcon.screenshots.tsx +1 -1
- package/lib/components/ButtonLink/ButtonLink.docs.tsx +1 -1
- package/lib/components/ButtonLink/ButtonLink.screenshots.tsx +43 -2
- package/lib/components/ButtonLink/ButtonLink.tsx +2 -1
- package/lib/components/Card/Card.docs.tsx +1 -1
- package/lib/components/Card/Card.gallery.tsx +1 -1
- package/lib/components/Card/Card.screenshots.tsx +1 -1
- package/lib/components/Checkbox/Checkbox.docs.tsx +1 -1
- package/lib/components/Checkbox/Checkbox.gallery.tsx +1 -1
- package/lib/components/Checkbox/Checkbox.screenshots.tsx +1 -1
- package/lib/components/Checkbox/CheckboxStandalone.screenshots.tsx +1 -1
- package/lib/components/Column/Column.screenshots.tsx +1 -1
- package/lib/components/Columns/Columns.docs.tsx +1 -1
- package/lib/components/Columns/Columns.gallery.tsx +1 -1
- package/lib/components/Columns/Columns.screenshots.tsx +1 -1
- package/lib/components/ContentBlock/ContentBlock.docs.tsx +1 -1
- package/lib/components/ContentBlock/ContentBlock.gallery.tsx +1 -1
- package/lib/components/ContentBlock/ContentBlock.screenshots.tsx +1 -1
- package/lib/components/Dialog/Dialog.docs.tsx +1 -1
- package/lib/components/Dialog/Dialog.gallery.tsx +1 -1
- package/lib/components/Dialog/Dialog.screenshots.tsx +1 -1
- package/lib/components/Disclosure/Disclosure.docs.tsx +1 -1
- package/lib/components/Disclosure/Disclosure.gallery.tsx +1 -1
- package/lib/components/Disclosure/Disclosure.screenshots.tsx +1 -1
- package/lib/components/Divider/Divider.docs.tsx +1 -1
- package/lib/components/Divider/Divider.gallery.tsx +1 -1
- package/lib/components/Divider/Divider.screenshots.tsx +1 -1
- package/lib/components/Drawer/Drawer.docs.tsx +1 -1
- package/lib/components/Drawer/Drawer.gallery.tsx +1 -1
- package/lib/components/Drawer/Drawer.screenshots.tsx +1 -1
- package/lib/components/Dropdown/Dropdown.docs.tsx +1 -1
- package/lib/components/Dropdown/Dropdown.gallery.tsx +1 -1
- package/lib/components/Dropdown/Dropdown.screenshots.tsx +1 -1
- package/lib/components/FieldLabel/FieldLabel.docs.tsx +1 -1
- package/lib/components/FieldLabel/FieldLabel.gallery.tsx +1 -1
- package/lib/components/FieldLabel/FieldLabel.screenshots.tsx +1 -1
- package/lib/components/FieldMessage/FieldMessage.docs.tsx +1 -1
- package/lib/components/FieldMessage/FieldMessage.gallery.tsx +1 -1
- package/lib/components/FieldMessage/FieldMessage.screenshots.tsx +1 -1
- package/lib/components/Heading/Heading.docs.tsx +1 -1
- package/lib/components/Heading/Heading.gallery.tsx +1 -1
- package/lib/components/Heading/Heading.screenshots.tsx +1 -1
- package/lib/components/Hidden/Hidden.docs.tsx +1 -1
- package/lib/components/Hidden/Hidden.screenshots.tsx +1 -1
- package/lib/components/HiddenVisually/HiddenVisually.docs.tsx +1 -1
- package/lib/components/HiddenVisually/HiddenVisually.screenshots.tsx +1 -1
- package/lib/components/Inline/Inline.docs.tsx +1 -1
- package/lib/components/Inline/Inline.gallery.tsx +1 -1
- package/lib/components/Inline/Inline.screenshots.tsx +1 -1
- package/lib/components/Link/Link.docs.tsx +1 -1
- package/lib/components/List/List.docs.tsx +1 -1
- package/lib/components/List/List.gallery.tsx +1 -1
- package/lib/components/List/List.screenshots.tsx +1 -1
- package/lib/components/Loader/Loader.docs.tsx +1 -1
- package/lib/components/Loader/Loader.gallery.tsx +1 -1
- package/lib/components/Loader/Loader.screenshots.tsx +1 -1
- package/lib/components/MenuItem/MenuItem.docs.tsx +1 -1
- package/lib/components/MenuItem/MenuItem.gallery.tsx +1 -1
- package/lib/components/MenuItem/MenuItem.screenshots.tsx +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.docs.tsx +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.gallery.tsx +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.screenshots.tsx +1 -1
- package/lib/components/MenuItemDivider/MenuItemDivider.docs.tsx +1 -1
- package/lib/components/MenuItemDivider/MenuItemDivider.gallery.tsx +1 -1
- package/lib/components/MenuItemDivider/MenuItemDivider.screenshots.tsx +1 -1
- package/lib/components/MenuRenderer/MenuRenderer.docs.tsx +1 -1
- package/lib/components/MenuRenderer/MenuRenderer.gallery.tsx +1 -1
- package/lib/components/MenuRenderer/MenuRenderer.screenshots.tsx +1 -1
- package/lib/components/MonthPicker/MonthPicker.docs.tsx +1 -1
- package/lib/components/MonthPicker/MonthPicker.gallery.tsx +1 -1
- package/lib/components/MonthPicker/MonthPicker.screenshots.tsx +1 -1
- package/lib/components/Notice/Notice.docs.tsx +1 -1
- package/lib/components/Notice/Notice.gallery.tsx +1 -1
- package/lib/components/Notice/Notice.screenshots.tsx +1 -1
- package/lib/components/OverflowMenu/OverflowMenu.docs.tsx +1 -1
- package/lib/components/OverflowMenu/OverflowMenu.gallery.tsx +1 -1
- package/lib/components/OverflowMenu/OverflowMenu.screenshots.tsx +1 -1
- package/lib/components/Pagination/Pagination.docs.tsx +1 -1
- package/lib/components/Pagination/Pagination.gallery.tsx +1 -1
- package/lib/components/Pagination/Pagination.screenshots.tsx +1 -1
- package/lib/components/PasswordField/PasswordField.docs.tsx +1 -1
- package/lib/components/PasswordField/PasswordField.gallery.tsx +1 -1
- package/lib/components/PasswordField/PasswordField.screenshots.tsx +1 -1
- package/lib/components/Radio/Radio.docs.tsx +1 -1
- package/lib/components/Radio/Radio.screenshots.tsx +1 -1
- package/lib/components/RadioGroup/RadioGroup.docs.tsx +1 -1
- package/lib/components/RadioGroup/RadioGroup.gallery.tsx +1 -1
- package/lib/components/RadioGroup/RadioGroup.screenshots.tsx +1 -1
- package/lib/components/Rating/Rating.docs.tsx +1 -1
- package/lib/components/Rating/Rating.gallery.tsx +1 -1
- package/lib/components/Rating/Rating.screenshots.tsx +20 -2
- package/lib/components/Rating/Rating.tsx +1 -1
- package/lib/components/Secondary/Secondary.docs.tsx +1 -1
- package/lib/components/Secondary/Secondary.gallery.tsx +1 -1
- package/lib/components/Secondary/Secondary.screenshots.tsx +1 -1
- package/lib/components/Stack/Stack.docs.tsx +1 -1
- package/lib/components/Stack/Stack.gallery.tsx +1 -1
- package/lib/components/Stack/Stack.screenshots.tsx +1 -1
- package/lib/components/Stepper/Stepper.docs.tsx +1 -1
- package/lib/components/Stepper/Stepper.gallery.tsx +1 -1
- package/lib/components/Stepper/Stepper.screenshots.tsx +1 -1
- package/lib/components/Strong/Strong.docs.tsx +1 -1
- package/lib/components/Strong/Strong.gallery.tsx +1 -1
- package/lib/components/Strong/Strong.screenshots.tsx +1 -1
- package/lib/components/Tabs/Tabs.docs.tsx +1 -1
- package/lib/components/Tabs/Tabs.gallery.tsx +1 -1
- package/lib/components/Tabs/Tabs.screenshots.tsx +1 -1
- package/lib/components/Tag/Tag.docs.tsx +1 -1
- package/lib/components/Tag/Tag.gallery.tsx +1 -1
- package/lib/components/Tag/Tag.screenshots.tsx +1 -1
- package/lib/components/Text/Text.docs.tsx +1 -1
- package/lib/components/Text/Text.gallery.tsx +1 -1
- package/lib/components/Text/Text.screenshots.tsx +1 -1
- package/lib/components/TextDropdown/TextDropdown.docs.tsx +1 -1
- package/lib/components/TextDropdown/TextDropdown.gallery.tsx +1 -1
- package/lib/components/TextDropdown/TextDropdown.screenshots.tsx +1 -1
- package/lib/components/TextField/TextField.docs.tsx +63 -3
- package/lib/components/TextField/TextField.gallery.tsx +1 -1
- package/lib/components/TextField/TextField.screenshots.tsx +1 -1
- package/lib/components/TextField/TextField.tsx +19 -0
- package/lib/components/TextLink/TextLink.docs.tsx +1 -1
- package/lib/components/TextLink/TextLink.gallery.tsx +1 -1
- package/lib/components/TextLink/TextLink.screenshots.tsx +1 -1
- package/lib/components/TextLinkButton/TextLinkButton.docs.tsx +1 -1
- package/lib/components/TextLinkButton/TextLinkButton.screenshots.tsx +1 -1
- package/lib/components/Textarea/Textarea.docs.tsx +2 -2
- package/lib/components/Textarea/Textarea.gallery.tsx +2 -2
- package/lib/components/Textarea/Textarea.screenshots.tsx +1 -1
- package/lib/components/ThemeNameConsumer/ThemeNameConsumer.docs.tsx +1 -1
- package/lib/components/Tiles/Tiles.docs.tsx +1 -1
- package/lib/components/Tiles/Tiles.gallery.tsx +1 -1
- package/lib/components/Tiles/Tiles.screenshots.tsx +1 -1
- package/lib/components/Toggle/Toggle.docs.tsx +1 -1
- package/lib/components/Toggle/Toggle.gallery.tsx +1 -1
- package/lib/components/Toggle/Toggle.screenshots.tsx +1 -1
- package/lib/components/TooltipRenderer/TooltipRenderer.docs.tsx +1 -1
- package/lib/components/TooltipRenderer/TooltipRenderer.gallery.tsx +1 -1
- package/lib/components/TooltipRenderer/TooltipRenderer.screenshots.tsx +1 -1
- package/lib/components/icons/IconAdd/IconAdd.docs.tsx +2 -2
- package/lib/components/icons/IconArrow/IconArrow.docs.tsx +2 -2
- package/lib/components/icons/IconBookmark/IconBookmark.docs.tsx +2 -2
- package/lib/components/icons/IconCaution/IconCaution.docs.tsx +2 -2
- package/lib/components/icons/IconChevron/IconChevron.docs.tsx +2 -2
- package/lib/components/icons/IconClear/IconClear.docs.tsx +2 -2
- package/lib/components/icons/IconCompany/IconCompany.docs.tsx +2 -2
- package/lib/components/icons/IconCompose/IconCompose.docs.tsx +2 -2
- package/lib/components/icons/IconCopy/IconCopy.docs.tsx +2 -2
- package/lib/components/icons/IconCreditCard/IconCreditCard.docs.tsx +2 -2
- package/lib/components/icons/IconCritical/IconCritical.docs.tsx +2 -2
- package/lib/components/icons/IconDate/IconDate.docs.tsx +2 -2
- package/lib/components/icons/IconDelete/IconDelete.docs.tsx +2 -2
- package/lib/components/icons/IconDesktop/IconDesktop.docs.tsx +2 -2
- package/lib/components/icons/IconDocument/IconDocument.docs.tsx +2 -2
- package/lib/components/icons/IconDocumentBroken/IconDocumentBroken.docs.tsx +2 -2
- package/lib/components/icons/IconDownload/IconDownload.docs.tsx +2 -2
- package/lib/components/icons/IconEdit/IconEdit.docs.tsx +2 -2
- package/lib/components/icons/IconEducation/IconEducation.docs.tsx +2 -2
- package/lib/components/icons/IconFilter/IconFilter.docs.tsx +2 -2
- package/lib/components/icons/IconFlag/IconFlag.docs.tsx +2 -2
- package/lib/components/icons/IconGrid/IconGrid.docs.tsx +2 -2
- package/lib/components/icons/IconHeart/IconHeart.docs.tsx +2 -2
- package/lib/components/icons/IconHelp/IconHelp.docs.tsx +2 -2
- package/lib/components/icons/IconHistory/IconHistory.docs.tsx +2 -2
- package/lib/components/icons/IconHome/IconHome.docs.tsx +2 -2
- package/lib/components/icons/IconImage/IconImage.docs.tsx +2 -2
- package/lib/components/icons/IconInfo/IconInfo.docs.tsx +2 -2
- package/lib/components/icons/IconInvoice/IconInvoice.docs.tsx +2 -2
- package/lib/components/icons/IconLanguage/IconLanguage.docs.tsx +2 -2
- package/lib/components/icons/IconLink/IconLink.docs.tsx +2 -2
- package/lib/components/icons/IconLinkBroken/IconLinkBroken.docs.tsx +2 -2
- package/lib/components/icons/IconList/IconList.docs.tsx +2 -2
- package/lib/components/icons/IconLocation/IconLocation.docs.tsx +2 -2
- package/lib/components/icons/IconMail/IconMail.docs.tsx +2 -2
- package/lib/components/icons/IconMinus/IconMinus.docs.tsx +2 -2
- package/lib/components/icons/IconMobile/IconMobile.docs.tsx +2 -2
- package/lib/components/icons/IconMoney/IconMoney.docs.tsx +2 -2
- package/lib/components/icons/IconNewWindow/IconNewWindow.docs.tsx +2 -2
- package/lib/components/icons/IconNote/IconNote.docs.tsx +2 -2
- package/lib/components/icons/IconNotification/IconNotification.docs.tsx +2 -2
- package/lib/components/icons/IconOverflow/IconOverflow.docs.tsx +2 -2
- package/lib/components/icons/IconPeople/IconPeople.docs.tsx +2 -2
- package/lib/components/icons/IconPersonAdd/IconPersonAdd.docs.tsx +2 -2
- package/lib/components/icons/IconPersonVerified/IconPersonVerified.docs.tsx +2 -2
- package/lib/components/icons/IconPhone/IconPhone.docs.tsx +2 -2
- package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.docs.tsx +2 -2
- package/lib/components/icons/IconPlatformApple/IconPlatformApple.docs.tsx +2 -2
- package/lib/components/icons/IconPositive/IconPositive.docs.tsx +2 -2
- package/lib/components/icons/IconPrint/IconPrint.docs.tsx +2 -2
- package/lib/components/icons/IconProfile/IconProfile.docs.tsx +2 -2
- package/lib/components/icons/IconPromote/IconPromote.docs.tsx +2 -2
- package/lib/components/icons/IconRecommended/IconRecommended.docs.tsx +2 -2
- package/lib/components/icons/IconRefresh/IconRefresh.docs.tsx +2 -2
- package/lib/components/icons/IconResume/IconResume.docs.tsx +2 -2
- package/lib/components/icons/IconSearch/IconSearch.docs.tsx +2 -2
- package/lib/components/icons/IconSecurity/IconSecurity.docs.tsx +2 -2
- package/lib/components/icons/IconSend/IconSend.docs.tsx +2 -2
- package/lib/components/icons/IconSent/IconSent.docs.tsx +2 -2
- package/lib/components/icons/IconSettings/IconSettings.docs.tsx +2 -2
- package/lib/components/icons/IconShare/IconShare.docs.tsx +2 -2
- package/lib/components/icons/IconSocialFacebook/IconSocialFacebook.docs.tsx +2 -2
- package/lib/components/icons/IconSocialGitHub/IconSocialGitHub.docs.tsx +2 -2
- package/lib/components/icons/IconSocialInstagram/IconSocialInstagram.docs.tsx +2 -2
- package/lib/components/icons/IconSocialLinkedIn/IconSocialLinkedIn.docs.tsx +2 -2
- package/lib/components/icons/IconSocialMedium/IconSocialMedium.docs.tsx +2 -2
- package/lib/components/icons/IconSocialTwitter/IconSocialTwitter.docs.tsx +2 -2
- package/lib/components/icons/IconSocialYouTube/IconSocialYouTube.docs.tsx +2 -2
- package/lib/components/icons/IconStar/IconStar.docs.tsx +2 -2
- package/lib/components/icons/IconStatistics/IconStatistics.docs.tsx +2 -2
- package/lib/components/icons/IconSubCategory/IconSubCategory.docs.tsx +2 -2
- package/lib/components/icons/IconTag/IconTag.docs.tsx +2 -2
- package/lib/components/icons/IconThumb/IconThumb.docs.tsx +2 -2
- package/lib/components/icons/IconTick/IconTick.docs.tsx +2 -2
- package/lib/components/icons/IconTime/IconTime.docs.tsx +2 -2
- package/lib/components/icons/IconTip/IconTip.docs.tsx +2 -2
- package/lib/components/icons/IconUpload/IconUpload.docs.tsx +2 -2
- package/lib/components/icons/IconVideo/IconVideo.docs.tsx +2 -2
- package/lib/components/icons/IconVisibility/IconVisibility.docs.tsx +2 -2
- package/lib/components/icons/IconWorkExperience/IconWorkExperience.docs.tsx +2 -2
- package/lib/components/icons/IconZoomIn/IconZoomIn.docs.tsx +2 -2
- package/lib/components/icons/IconZoomOut/IconZoomOut.docs.tsx +2 -2
- package/lib/components/icons/Icons.screenshots.tsx +1 -1
- package/lib/components/icons/{iconDocumentation.tsx → iconCommon.docs.tsx} +1 -1
- package/lib/components/useBreakpoint/useBreakpoint.docs.tsx +1 -1
- package/lib/components/useColor/useColor.docs.tsx +1 -1
- package/lib/components/useResponsiveValue/useResponsiveValue.docs.tsx +1 -1
- package/lib/components/useSpace/useSpace.docs.tsx +1 -1
- package/lib/components/useThemeName/useThemeName.docs.tsx +1 -1
- package/lib/components/useToast/useToast.docs.tsx +3 -3
- package/lib/components/useToast/useToast.gallery.tsx +1 -1
- package/lib/components/useToast/useToast.screenshots.tsx +1 -1
- package/lib/css/reset/reset.css.ts +10 -0
- package/lib/stories/all.stories.tsx +1 -1
- package/package.json +5 -6
- package/project.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 31.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **TextField:** Add `inputMode` and `step` support ([#1174](https://github.com/seek-oss/braid-design-system/pull/1174))
|
|
8
|
+
|
|
9
|
+
Provide support for the native `inputMode` and `step` attributes.
|
|
10
|
+
|
|
11
|
+
The `inputMode` will also be defaulted based on the specified `type`. For example: `<TextField type="number" />` will default the `inputMode` to `numeric`.
|
|
12
|
+
|
|
13
|
+
**EXAMPLE USAGE:**
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
<TextField inputMode="numeric" step=".01" />
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- **Rating:** Only fill star for scores .75 and above ([#1176](https://github.com/seek-oss/braid-design-system/pull/1176))
|
|
22
|
+
|
|
23
|
+
A star is only `filled` when the score is .75 and above. Fixes an issue where all scores .5 or above are shown as half filled stars.
|
|
24
|
+
|
|
25
|
+
**EXAMPLE USAGE:**
|
|
26
|
+
Now when a rating reaches .75 it will round up to a full star.
|
|
27
|
+
|
|
28
|
+
```jsx
|
|
29
|
+
<Rating rating={3.75} /> // 4 filled
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- **ButtonLink:** Allow native data attributes with anchor api ([#1178](https://github.com/seek-oss/braid-design-system/pull/1178))
|
|
33
|
+
|
|
34
|
+
Disables the validation against the use of data attributes on `ButtonLink`. Given it exposes the full native anchor tag api, it is **not invalid** to use the native syntax.
|
|
35
|
+
|
|
36
|
+
- **Box, atoms:** Remove native buttons on number input field ([#1174](https://github.com/seek-oss/braid-design-system/pull/1174))
|
|
37
|
+
|
|
38
|
+
Extends the CSS reset behaviour of HTML input fields where `type="number"` to remove the native increment and decrement buttons.
|
|
39
|
+
|
|
40
|
+
**EXAMPLE USAGE:**
|
|
41
|
+
The following will now render a HTML input of type `number` without native buttons:
|
|
42
|
+
|
|
43
|
+
```jsx
|
|
44
|
+
<Box component="input" type="number" />
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Additionally, if using the `atoms` function to build styles, when resetting an `input` field, the native buttons will also be removed.
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
const customClasses = atoms({
|
|
51
|
+
reset: 'input',
|
|
52
|
+
...
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 31.18.1
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- **Button, ButtonLink:** Improve alignment of transparent buttons with icons against Text with icons ([#1170](https://github.com/seek-oss/braid-design-system/pull/1170))
|
|
61
|
+
|
|
62
|
+
To improve optical balance of a `Button` with an `icon`, the icon container is bled to the left to balance against the larger horizontal inset of a `standard` button.
|
|
63
|
+
This alignment correction is now only applied on `standard` sized buttons that are not using the `transparent` variant.
|
|
64
|
+
|
|
65
|
+
Isolating this alignment correction enables transparent buttons to better align with other components with `icon` slots, for example:
|
|
66
|
+
|
|
67
|
+
```jsx
|
|
68
|
+
<Stack space="small">
|
|
69
|
+
<Text icon={<IconSend />}>Text</Text>
|
|
70
|
+
<Button icon={<IconSend />} variant="transparent" bleed>
|
|
71
|
+
Button
|
|
72
|
+
</Button>
|
|
73
|
+
</Stack>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Icons and text will now be perfectly aligned between Button components and others icon slots with the same text size.
|
|
77
|
+
|
|
3
78
|
## 31.18.0
|
|
4
79
|
|
|
5
80
|
### Minor Changes
|