File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 156156// Avatar Empty Badge (hint)
157157// --------------------------------------------------
158158
159- :host (.avatar-xxsmall ) ::slotted(ion-badge .badge-top :empty ) {
159+ :host (.avatar-xxsmall ) ::slotted(ion-badge .badge-vertical- top :empty ) {
160160 transform : translate (globals .$ion-scale-100 , calc (globals .$ion-scale-100 * -1 ));
161161}
162162
163- :host (:not (.avatar-xxsmall )) ::slotted(ion-badge .badge-top :empty ) {
163+ :host (:not (.avatar-xxsmall )) ::slotted(ion-badge .badge-vertical- top :empty ) {
164164 transform : translate (globals .$ion-scale-050 , calc (globals .$ion-scale-050 * -1 ));
165165}
166166
167- :host (.avatar-xxsmall ) ::slotted(ion-badge .badge-bottom :empty ) {
167+ :host (.avatar-xxsmall ) ::slotted(ion-badge .badge-vertical- bottom :empty ) {
168168 transform : translate (globals .$ion-scale-100 , calc (globals .$ion-scale-100 ));
169169}
170170
171- :host (:not (.avatar-xxsmall )) ::slotted(ion-badge .badge-bottom :empty ) {
171+ :host (:not (.avatar-xxsmall )) ::slotted(ion-badge .badge-vertical- bottom :empty ) {
172172 transform : translate (0 , globals .$ion-scale-100 );
173173}
Original file line number Diff line number Diff line change 1111 height : $avatar-md-height ;
1212}
1313
14- ::slotted(ion-badge .badge-top :empty ) {
14+ ::slotted(ion-badge .badge-vertical- top :empty ) {
1515 transform : translate (-50% , 50% );
1616}
1717
18- ::slotted(ion-badge .badge-bottom :empty ) {
18+ ::slotted(ion-badge .badge-vertical- bottom :empty ) {
1919 transform : translateX (-100% );
2020}
Original file line number Diff line number Diff line change 5656 position : absolute ;
5757}
5858
59- :host (:empty .badge-top ) {
59+ :host (:empty .badge-vertical- top ) {
6060 top : 0 ;
6161}
6262
63- :host (:empty .badge-bottom ) {
63+ :host (:empty .badge-vertical- bottom ) {
6464 bottom : 0 ;
6565}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export class Badge implements ComponentInterface {
9595 [ theme ] : true ,
9696 [ `badge-${ shape } ` ] : shape !== undefined ,
9797 [ `badge-${ size } ` ] : size !== undefined ,
98- [ `badge-${ this . vertical } ` ] : this . vertical !== undefined ,
98+ [ `badge-vertical- ${ this . vertical } ` ] : this . vertical !== undefined ,
9999 } ) }
100100 >
101101 < slot > </ slot >
You can’t perform that action at this time.
0 commit comments