Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 13.3k
feat(select): allow HTML within options#31072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
9918f4ad0a8a56d53d6275415cad8f3e623f0b45d3a48cf66e9eb575e4bce6b03b8351cc0af0549e0e6c0c7e4d617e9e376ef235522dace3f2695ca8a4e59bdeaafb996a4bb37fad490d6332e7cd276fc968103a8009bfe91091c2bfd3c5257c557dfabd52197b27045c8622dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||
| @use "../../themes/ionic/ionic.globals.scss" as globals; | ||||
| @use "./action-sheet.common"; | ||||
| @use "./action-sheet.md" as action-sheet-md; | ||||
| // Ionic Action Sheet | ||||
| // -------------------------------------------------- | ||||
| // Action Sheet: Select Option | ||||
| // -------------------------------------------------- | ||||
| .action-sheet-button-label { | ||||
| gap: globals.$ion-space-300; | ||||
| } | ||||
| .select-option-description { | ||||
| @include globals.typography(globals.$ion-body-md-regular); | ||||
| @include globals.padding(0); | ||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This can be removed when the ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. | ||||
| color: globals.$ion-text-subtle; | ||||
| font-size: globals.$ion-font-size-350; | ||||
| } | ||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @import "./action-sheet"; | ||
| @import "./action-sheet.native"; | ||
| @import "./action-sheet.ios.vars"; | ||
| // iOS Action Sheet | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| @use "../../themes/native/native.theme.default" as native; | ||
| @use "../../themes/mixins" as mixins; | ||
| @use "../../themes/functions.font" as font; | ||
| @use "./action-sheet.common"; | ||
| // Action Sheet: Native | ||
| // -------------------------------------------------- | ||
| .action-sheet-button-label { | ||
| gap: 12px; | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I decided to use the same value that ionic uses. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based it off | ||
| } | ||
| .select-option-description { | ||
| @include mixins.padding(5px, 0, 0, 0); | ||
| color: native.$text-color-step-300; | ||
| font-size: font.dynamic-font(12px); | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||
| @use "../../themes/ionic/ionic.globals.scss" as globals; | ||||
| @use "./alert.common"; | ||||
| @use "./alert.md" as alert-md; | ||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Is this an accidental import? It is adding the native styles for the You should add any shared styles to ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was not. Before creating the ionic file, the ionic theme was using md styles. So it still needs the md styles, I just didn't think it was necessary to copy and paste code. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The | ||||
| // Ionic Alert | ||||
| // -------------------------------------------------- | ||||
| // Alert: Select Option | ||||
| // -------------------------------------------------- | ||||
| .alert-radio-label, | ||||
| .alert-checkbox-label { | ||||
| gap: globals.$ion-space-300; | ||||
| } | ||||
| .select-option-description { | ||||
| @include globals.typography(globals.$ion-body-md-regular); | ||||
| @include globals.padding(0); | ||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This can be removed when the ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. | ||||
| color: globals.$ion-text-subtle; | ||||
| font-size: globals.$ion-font-size-350; | ||||
| } | ||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @import "./alert"; | ||
| @import "./alert.native"; | ||
| @import "./alert.ios.vars"; | ||
| // iOS Alert | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @import "./alert"; | ||
| @import "./alert.native"; | ||
| @import "./alert.md.vars"; | ||
| // Material Design Alert | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| @use "../../themes/native/native.theme.default" as native; | ||
| @use "../../themes/mixins" as mixins; | ||
| @use "../../themes/functions.font" as font; | ||
| @use "./alert.common"; | ||
| // Alert: Native | ||
| // -------------------------------------------------- | ||
| .alert-radio-label, | ||
| .alert-checkbox-label { | ||
| gap: 12px; | ||
| } | ||
| .select-option-description { | ||
| @include mixins.padding(5px, 0, 0, 0); | ||
| color: native.$text-color-step-300; | ||
| font-size: font.dynamic-font(12px); | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an accidental import? It is adding the native styles for the
ionictheme.You should add any shared styles to
common.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not. Before creating the ionic file, the ionic theme was using md styles. So it still needs the md styles, I just didn't think it was necessary to copy and paste code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
ionicstyles should not be importing themdstyles. This causes unnecessary overrides. If this is something we aren't going to do on this PR then we need to add it to the ticket to migrate action-sheet as part of the modular work (FW-6885).