fix(button): update for ios spec (#26864)
BREAKING CHANGE: Button is updated to align with the design specification for iOS. **Design tokens** | Token | Previous Value | New Value | | ---------------------------------- | -------------- | --------- | | `$button-ios-letter-spacing` | `-0.03em` | `0` | | `$button-ios-clear-letter-spacing` | `0` | Removed | | `$button-ios-height` | `2.8em` | `3.1em` | | `$button-ios-border-radius` | `10px` | `14px` | | `$button-ios-large-height` | `2.8em` | `3.1em` | | `$button-ios-large-border-radius` | `12px` | `16px` |
16
BREAKING.md
@ -17,6 +17,7 @@ This is a comprehensive list of the breaking changes introduced in the major ver
|
|||||||
- [Accordion Group](#version-7x-accordion-group)
|
- [Accordion Group](#version-7x-accordion-group)
|
||||||
- [Action Sheet](#version-7x-action-sheet)
|
- [Action Sheet](#version-7x-action-sheet)
|
||||||
- [Back Button](#version-7x-back-button)
|
- [Back Button](#version-7x-back-button)
|
||||||
|
- [Button](#version-7x-button)
|
||||||
- [Card Header](#version-7x-card-header)
|
- [Card Header](#version-7x-card-header)
|
||||||
- [Checkbox](#version-7x-checkbox)
|
- [Checkbox](#version-7x-checkbox)
|
||||||
- [Datetime](#version-7x-datetime)
|
- [Datetime](#version-7x-datetime)
|
||||||
@ -88,6 +89,21 @@ This section details the desktop browser, JavaScript framework, and mobile platf
|
|||||||
| ---------- | -------------- | --------- |
|
| ---------- | -------------- | --------- |
|
||||||
| `--height` | `100%` | `auto` |
|
| `--height` | `100%` | `auto` |
|
||||||
|
|
||||||
|
<h4 id="version-7x-button">Button</h4>
|
||||||
|
|
||||||
|
- Button is updated to align with the design specification for iOS.
|
||||||
|
|
||||||
|
**Design tokens**
|
||||||
|
|
||||||
|
| Token | Previous Value | New Value |
|
||||||
|
| ---------------------------------- | -------------- | --------- |
|
||||||
|
| `$button-ios-letter-spacing` | `-0.03em` | `0` |
|
||||||
|
| `$button-ios-clear-letter-spacing` | `0` | Removed |
|
||||||
|
| `$button-ios-height` | `2.8em` | `3.1em` |
|
||||||
|
| `$button-ios-border-radius` | `10px` | `14px` |
|
||||||
|
| `$button-ios-large-height` | `2.8em` | `3.1em` |
|
||||||
|
| `$button-ios-large-border-radius` | `12px` | `16px` |
|
||||||
|
|
||||||
<h4 id="version-7x-back-button">Back Button</h4>
|
<h4 id="version-7x-back-button">Back Button</h4>
|
||||||
|
|
||||||
- Back Button is updated to align with the design specification for iOS.
|
- Back Button is updated to align with the design specification for iOS.
|
||||||
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
@ -78,8 +78,6 @@
|
|||||||
|
|
||||||
font-size: #{$button-ios-clear-font-size};
|
font-size: #{$button-ios-clear-font-size};
|
||||||
font-weight: #{$button-ios-clear-font-weight};
|
font-weight: #{$button-ios-clear-font-weight};
|
||||||
|
|
||||||
letter-spacing: #{$button-ios-clear-letter-spacing};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@ $button-ios-padding-bottom: $button-ios-padding-top !d
|
|||||||
$button-ios-padding-start: $button-ios-padding-end !default;
|
$button-ios-padding-start: $button-ios-padding-end !default;
|
||||||
|
|
||||||
/// @prop - Height of the button
|
/// @prop - Height of the button
|
||||||
$button-ios-height: 2.8em !default;
|
$button-ios-height: 3.1em !default;
|
||||||
|
|
||||||
/// @prop - Border radius of the button
|
/// @prop - Border radius of the button
|
||||||
$button-ios-border-radius: 10px !default;
|
$button-ios-border-radius: 14px !default;
|
||||||
|
|
||||||
/// @prop - Font size of the button text
|
/// @prop - Font size of the button text
|
||||||
$button-ios-font-size: 16px !default;
|
$button-ios-font-size: 16px !default;
|
||||||
@ -39,9 +39,6 @@ $button-ios-font-size: 16px !default;
|
|||||||
/// @prop - Font weight of the button text
|
/// @prop - Font weight of the button text
|
||||||
$button-ios-font-weight: 500 !default;
|
$button-ios-font-weight: 500 !default;
|
||||||
|
|
||||||
/// @prop - Letter spacing of the button text
|
|
||||||
$button-ios-letter-spacing: -.03em !default;
|
|
||||||
|
|
||||||
/// @prop - Background color of the button
|
/// @prop - Background color of the button
|
||||||
$button-ios-background-color: ion-color(primary, base) !default;
|
$button-ios-background-color: ion-color(primary, base) !default;
|
||||||
|
|
||||||
@ -80,10 +77,10 @@ $button-ios-large-padding-bottom: $button-ios-large-padding-
|
|||||||
$button-ios-large-padding-start: $button-ios-large-padding-end !default;
|
$button-ios-large-padding-start: $button-ios-large-padding-end !default;
|
||||||
|
|
||||||
/// @prop - Height of the large button
|
/// @prop - Height of the large button
|
||||||
$button-ios-large-height: 2.8em !default;
|
$button-ios-large-height: 3.1em !default;
|
||||||
|
|
||||||
/// @prop - Border radius of the large button
|
/// @prop - Border radius of the large button
|
||||||
$button-ios-large-border-radius: 12px !default;
|
$button-ios-large-border-radius: 16px !default;
|
||||||
|
|
||||||
/// @prop - Font size of the large button
|
/// @prop - Font size of the large button
|
||||||
$button-ios-large-font-size: 20px !default;
|
$button-ios-large-font-size: 20px !default;
|
||||||
@ -159,8 +156,8 @@ $button-ios-clear-font-size: 17px !default;
|
|||||||
/// @prop - Font weight of the clear button
|
/// @prop - Font weight of the clear button
|
||||||
$button-ios-clear-font-weight: normal !default;
|
$button-ios-clear-font-weight: normal !default;
|
||||||
|
|
||||||
/// @prop - Letter spacing of the clear button
|
/// @prop - Letter spacing of the button
|
||||||
$button-ios-clear-letter-spacing: 0 !default;
|
$button-ios-letter-spacing: 0 !default;
|
||||||
|
|
||||||
/// @prop - Border color of the clear button
|
/// @prop - Border color of the clear button
|
||||||
$button-ios-clear-border-color: transparent !default;
|
$button-ios-clear-border-color: transparent !default;
|
||||||
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 43 KiB |