feat(chip): set default shape to soft for ios and md theme and round for ionic theme #29375
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number: internal
What is the current behavior?
The
shape
property defaults toundefined
which evaluates to the "Soft" shape for theionic
theme and the "Round" shape for theios
/md
themes.ionic
)ios
)md
)undefined
4px
16px
16px
"round"
999px
"rectangular"
0px
What is the new behavior?
ionic
)ios
)md
)"soft"
4px
10px
8px
"round"
999px
999px
999px
"rectangular"
0px
0px
0px
shape
property to"soft"
forios
andmd
themes and"round"
for the ionic theme.border-radius
to apply to the shape classes instead of:host
ios
theme to use10px
for"soft"
as this was taken from the App Store:md
theme to use8px
for"soft"
as this is taken from the Material Design 3 guidelines & the previous value of16px
is the equivalent of the999px
round shape due to the height being32px
"round"
and"rectangular"
shapes inios
andmd
themesDoes this introduce a breaking change?
BREAKING CHANGE:
The
border-radius
of theios
andmd
chip now defaults to10px
and8px
, respectively, instead of16px
in accordance with the iOS and Material Design 3 guidelines. To revert to the previous appearance, set theshape
to"round"
, or override the--border-radius
CSS variable to specify a different value.