From ed0bc808c5ed4daa1290f04595db3817cb9b82e4 Mon Sep 17 00:00:00 2001 From: felix-ico Date: Wed, 17 Jan 2024 11:50:13 +0000 Subject: [PATCH] test(visual): update snapshots --- .../components/src/components/segment/readme.md | 17 ++++++++--------- .../src/components/segmented-button/readme.md | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/components/src/components/segment/readme.md b/packages/components/src/components/segment/readme.md index bc5a198334..5f031c7fe9 100644 --- a/packages/components/src/components/segment/readme.md +++ b/packages/components/src/components/segment/readme.md @@ -11,20 +11,19 @@ | ---------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- | -------------- | | `adjacentSiblings` | `adjacent-siblings` | | `"left" \| "leftright" \| "right"` | `undefined` | | `ariaDescriptionTranslation` | `aria-description-translation` | a11y text for getting meaningful value. `$buttonNumber` and `$selected` are template variables and will be replaces by their corresponding properties. | `string` | `'$selected'` | -| `ariaLabelSegment` | `aria-label-segment` | (optional) aria-label attribute needed for icon-only segments | `string` | `undefined` | +| `ariaLabelSegment` | `aria-label-segment` | (optional) aria-label attribute needed for icon-only buttons | `string` | `undefined` | | `ariaLangDeselected` | `aria-lang-deselected` | (optional) translation of 'deselected | `string` | `'deselected'` | | `ariaLangSelected` | `aria-lang-selected` | (optional) translation of 'selected | `string` | `'selected'` | -| `disabled` | `disabled` | (optional) If `true`, the segment is disabled | `boolean` | `false` | -| `hasIcon` | `has-icon` | (optional) position within group | `boolean` | `undefined` | -| `iconOnly` | `icon-only` | (optional) position within group | `boolean` | `undefined` | +| `disabled` | `disabled` | (optional) If `true`, the button is disabled | `boolean` | `false` | +| `iconOnly` | `icon-only` | (optional) icon only segment | `boolean` | `false` | +| `iconText` | `icon-text` | (optional) segment with icon and text | `boolean` | `false` | +| `multiSelect` | `multi-select` | (optional) multi select segment | `boolean` | `false` | | `position` | `position` | (optional) position within group | `number` | `undefined` | | `segmentId` | `segment-id` | (optional) segment's id | `string` | `undefined` | -| `selected` | `selected` | (optional) If `true`, the segment is selected | `boolean` | `false` | -| `selectedIndex` | `selected-index` | (optional) the index of the currently selected segment in the segmented-button | `string` | `undefined` | -| `size` | `size` | (optional) The size of the segment | `"large" \| "medium" \| "small"` | `'small'` | +| `selected` | `selected` | (optional) If `true`, the button is selected | `boolean` | `false` | +| `size` | `size` | (optional) The size of the button | `"large" \| "medium" \| "small"` | `'small'` | | `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` | -| `textOnly` | `text-only` | (optional) position within group | `boolean` | `undefined` | -| `width` | `width` | (optional) Segment width set to ensure that all segments have the same width | `string` | `undefined` | +| `width` | `width` | (optional) Button width set to ensure that all buttons have the same width | `string` | `undefined` | ## Events diff --git a/packages/components/src/components/segmented-button/readme.md b/packages/components/src/components/segmented-button/readme.md index 7c5faaa8ee..6b7a175382 100644 --- a/packages/components/src/components/segmented-button/readme.md +++ b/packages/components/src/components/segmented-button/readme.md @@ -13,11 +13,11 @@ | `disabled` | `disabled` | (optional) If `true`, the button is disabled | `boolean` | `false` | | `fullWidth` | `full-width` | (optional) If `true`, expand to container width | `boolean` | `false` | | `helperText` | `helper-text` | (optional) If `true`, show error message | `string` | `'Please select an option'` | +| `iconOnly` | `icon-only` | (optional) icon only | `boolean` | `false` | | `invalid` | `invalid` | (optional) If `true`, show error message | `boolean` | `false` | | `label` | `label` | (optional) Button label | `string` | `undefined` | | `longestButtonWidth` | `longest-button-width` | | `string` | `undefined` | | `multiSelect` | `multi-select` | (optional) Allow more than one button to be selected | `boolean` | `false` | -| `selectedIndex` | `selected-index` | (optional) the index of the selected segment | `number` | `undefined` | | `size` | `size` | (optional) The size of the button | `"large" \| "medium" \| "small"` | `'small'` | | `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` |