mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(searchbar): add border-radius css variable (#20662)
fixes #17426 fixes #18247
This commit is contained in:
@@ -954,6 +954,7 @@ ion-searchbar,event,ionClear,void,true
|
||||
ion-searchbar,event,ionFocus,void,true
|
||||
ion-searchbar,event,ionInput,KeyboardEvent,true
|
||||
ion-searchbar,css-prop,--background
|
||||
ion-searchbar,css-prop,--border-radius
|
||||
ion-searchbar,css-prop,--box-shadow
|
||||
ion-searchbar,css-prop,--cancel-button-color
|
||||
ion-searchbar,css-prop,--clear-button-color
|
||||
|
||||
@@ -303,6 +303,7 @@ Type: `Promise<void>`
|
||||
| Name | Description |
|
||||
| --------------------------- | ---------------------------------------- |
|
||||
| `--background` | Background of the searchbar input |
|
||||
| `--border-radius` | Border radius of the searchbar input |
|
||||
| `--box-shadow` | Box shadow of the searchbar input |
|
||||
| `--cancel-button-color` | Color of the searchbar cancel button |
|
||||
| `--clear-button-color` | Color of the searchbar clear button |
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
:host {
|
||||
--background: #{$searchbar-ios-input-background-color};
|
||||
--border-radius: #{$searchbar-ios-input-border-radius};
|
||||
--box-shadow: none;
|
||||
--cancel-button-color: #{$searchbar-ios-cancel-button-color};
|
||||
--clear-button-color: #{$searchbar-ios-input-clear-icon-color};
|
||||
@@ -45,7 +46,6 @@
|
||||
|
||||
.searchbar-input {
|
||||
@include padding(0, 28px);
|
||||
@include border-radius($searchbar-ios-input-border-radius);
|
||||
|
||||
height: 100%;
|
||||
|
||||
@@ -189,4 +189,4 @@
|
||||
color: currentColor;
|
||||
|
||||
opacity: $searchbar-ios-input-icon-opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
:host {
|
||||
--background: #{$searchbar-md-input-background-color};
|
||||
--border-radius: #{$searchbar-md-input-border-radius};
|
||||
--box-shadow: #{$searchbar-md-input-box-shadow};
|
||||
--cancel-button-color: #{$searchbar-md-cancel-button-color};
|
||||
--clear-button-color: initial;
|
||||
@@ -59,7 +60,6 @@
|
||||
|
||||
.searchbar-input {
|
||||
@include padding(6px, 55px);
|
||||
@include border-radius($searchbar-md-input-border-radius);
|
||||
@include background-position(start, 8px, center);
|
||||
|
||||
height: $searchbar-md-input-height;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
/**
|
||||
* @prop --background: Background of the searchbar input
|
||||
* @prop --box-shadow: Box shadow of the searchbar input
|
||||
* @prop --border-radius: Border radius of the searchbar input
|
||||
* @prop --cancel-button-color: Color of the searchbar cancel button
|
||||
* @prop --clear-button-color: Color of the searchbar clear button
|
||||
* @prop --color: Color of the searchbar text
|
||||
@@ -68,6 +69,7 @@
|
||||
|
||||
.searchbar-input {
|
||||
@include text-inherit();
|
||||
@include border-radius(var(--border-radius));
|
||||
|
||||
display: block;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user