mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
feat(input): add rectangular shape for the ionic theme (#29476)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? The input supports an undefined and a `round` shape. ## What is the new behavior? Adds support for the `rectangular` shape for the `ionic` theme & screenshot tests for this shape with the outline fill. ## Does this introduce a breaking change? - [ ] Yes - [x] No
This commit is contained in:
@ -55,8 +55,8 @@
|
||||
::slotted([slot="end"]),
|
||||
.input-clear-icon {
|
||||
/**
|
||||
* The target area has a z-index of 1, so the slotted elements
|
||||
* should be higher. Otherwise, the slotted elements will not
|
||||
* The target area has a z-index of 1, so the slotted elements
|
||||
* should be higher. Otherwise, the slotted elements will not
|
||||
* be interactable. This is especially important for the clear
|
||||
* button, which should be clickable.
|
||||
*/
|
||||
@ -108,6 +108,10 @@
|
||||
--border-radius: #{$ionic-border-radius-rounded-full};
|
||||
}
|
||||
|
||||
:host(.input-shape-rectangular) {
|
||||
--border-radius: #{$ionic-border-radius-square};
|
||||
}
|
||||
|
||||
// Input Bottom Content
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user