mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
refactor(buttons): button-native without prefix
Now we don't need prefix because of shadow-dom
This commit is contained in:
@ -39,17 +39,17 @@
|
||||
--color: #{ion-color(primary, contrast)};
|
||||
}
|
||||
|
||||
:host(.chip-button-solid.ion-color) .chip-button-native {
|
||||
:host(.chip-button-solid.ion-color) .button-native {
|
||||
background: current-color(base);
|
||||
color: current-color(contrast);
|
||||
}
|
||||
|
||||
:host(.chip-button-clear.ion-color) .chip-button-native {
|
||||
:host(.chip-button-clear.ion-color) .button-native {
|
||||
background: transparent;
|
||||
color: current-color(base);
|
||||
}
|
||||
|
||||
.chip-button-native {
|
||||
.button-native {
|
||||
@include text-inherit();
|
||||
@include border-radius(var(--border-radius));
|
||||
@include margin(var(--margin-top), var(--margin-end), var(--margin-bottom), var(--margin-start));
|
||||
@ -68,7 +68,7 @@
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.chip-button-inner {
|
||||
.button-inner {
|
||||
display: flex;
|
||||
|
||||
flex-flow: row nowrap;
|
||||
|
||||
@ -56,11 +56,11 @@ export class ChipButton implements ComponentInterface {
|
||||
return (
|
||||
<TagType
|
||||
type="button"
|
||||
class="chip-button-native"
|
||||
class="button-native"
|
||||
disabled={this.disabled}
|
||||
href={this.href}
|
||||
>
|
||||
<span class="chip-button-inner">
|
||||
<span class="button-inner">
|
||||
<slot></slot>
|
||||
</span>
|
||||
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||
|
||||
Reference in New Issue
Block a user