mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
Merge branch 'main' into chore-update-from-main-2
This commit is contained in:
@ -129,7 +129,7 @@ export class Select implements ComponentInterface {
|
||||
* `"space-between"`: The label and select will appear on opposite
|
||||
* ends of the line with space between the two elements.
|
||||
*/
|
||||
@Prop() justify: 'start' | 'end' | 'space-between' = 'space-between';
|
||||
@Prop() justify?: 'start' | 'end' | 'space-between';
|
||||
|
||||
/**
|
||||
* The visible label associated with the select.
|
||||
@ -997,7 +997,7 @@ export class Select implements ComponentInterface {
|
||||
this;
|
||||
const theme = getIonTheme(this);
|
||||
const hasFloatingOrStackedLabel = labelPlacement === 'floating' || labelPlacement === 'stacked';
|
||||
const justifyEnabled = !hasFloatingOrStackedLabel;
|
||||
const justifyEnabled = !hasFloatingOrStackedLabel && justify !== undefined;
|
||||
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
||||
const inItem = hostContext('ion-item', this.el);
|
||||
const shouldRenderHighlight = theme === 'md' && fill !== 'outline' && !inItem;
|
||||
|
Reference in New Issue
Block a user