mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(select): add position styles to work as standalone
This commit is contained in:
@ -18,6 +18,8 @@
|
||||
|
||||
display: flex;
|
||||
|
||||
position: relative;
|
||||
|
||||
color: var(--color);
|
||||
|
||||
font-family: $font-family-base;
|
||||
@ -26,6 +28,8 @@
|
||||
}
|
||||
|
||||
:host(.in-item) {
|
||||
position: static;
|
||||
|
||||
max-width: 45%;
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ export class Select implements ComponentInterface {
|
||||
private inputId = `ion-sel-${selectIds++}`;
|
||||
private labelId?: string;
|
||||
private overlay?: HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement;
|
||||
|
||||
@Element() el!: HTMLIonSelectElement;
|
||||
|
||||
@Prop({ connect: 'ion-action-sheet-controller' }) actionSheetCtrl!: HTMLIonActionSheetControllerElement;
|
||||
|
Reference in New Issue
Block a user