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(button): allow button to increase in height when text wraps#27547
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
4bd5e1e4754703c580970fc5366f6b0c29eacc0715a0234236516ee4a1265298092213eb77dab06909bfb5df308ffa307f1226aa613a565588b448e84db5ce8a8dcff0a41736f345d9394d18c41957d5146d60af657109b360628b859f2cbd67a6882fe887023f1fe785a2ab25c0e69f6053e0fc4f7bc5162ff2674bed96d4a1c99c4da8b4a63c246b8320d831a31c137811ceda0ef0d6f125a77d30a6569c1f84c01a1e1File 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 | ||||
|---|---|---|---|---|---|---|
| @@ -55,8 +55,8 @@ | ||||||
| text-align: center; | ||||||
| text-decoration: none; | ||||||
| text-overflow: ellipsis; | ||||||
| // TODO(FW-4599): change to normal | ||||||
| white-space: nowrap; | ||||||
| user-select: none; | ||||||
| @@ -114,8 +114,6 @@ | ||||||
| :host(.button-block) .button-native { | ||||||
| @include margin-horizontal(0); | ||||||
| display: block; | ||||||
| width: 100%; | ||||||
| clear: both; | ||||||
| @@ -138,8 +136,6 @@ | ||||||
| :host(.button-full) .button-native { | ||||||
| @include margin-horizontal(0); | ||||||
| display: block; | ||||||
| width: 100%; | ||||||
| contain: content; | ||||||
| @@ -159,12 +155,17 @@ | ||||||
| @include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start)); | ||||||
| @include text-inherit(); | ||||||
| display: block; | ||||||
| display: flex; | ||||||
| position: relative; | ||||||
| align-items: center; | ||||||
| width: 100%; | ||||||
| height: 100%; | ||||||
| min-height: inherit; | ||||||
| transition: var(--transition); | ||||||
| border-width: var(--border-width); | ||||||
| @@ -210,11 +211,20 @@ | ||||||
| } | ||||||
| // Button Slots | ||||||
| // -------------------------------------------------- | ||||||
| ::slotted([slot=start]), | ||||||
| ::slotted([slot=end]) { | ||||||
| flex-shrink: 0; | ||||||
| } | ||||||
averyrousseau marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||||||
| // Button Icons | ||||||
| // -------------------------------------------------- | ||||||
| ::slotted(ion-icon) { | ||||||
| font-size: 1.4em; | ||||||
| font-size: 1.35em; | ||||||
Comment on lines
-217
to
+227
Contributor 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.
We tried to fix it by setting Contributor 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. It also turns out that the icons were not aligned with the text in
In
| ||||||
| pointer-events: none; | ||||||
| } | ||||||
Uh oh!
There was an error while loading. Please reload this page.


Uh oh!
There was an error while loading. Please reload this page.