-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
refactor(datetime): update ionic styles for footer buttons #30014
base: next
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -13,7 +13,7 @@ | |||
// -------------------------------------------------- | |||
|
|||
::slotted(*) .button-clear { | |||
--color: globals.$ion-primitives-neutral-1200; | |||
--color: #{globals.$ion-primitives-neutral-1200}; |
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.
Noticed this while updating the styles.
:host .datetime-action-buttons ion-buttons { | ||
display: flex; | ||
|
||
justify-content: space-between; | ||
} | ||
|
||
/** | ||
* The confirm and clear buttons are grouped in a | ||
* container so that they appear on the end opposite | ||
* of the cancel button. | ||
* We use display: flex so that the | ||
* wrapper only takes up as much | ||
* height as it needs. | ||
*/ | ||
.datetime-action-buttons .datetime-action-buttons-container { | ||
display: flex; | ||
} |
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.
These only apply to the native styles.
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.
Looks good besides the missing gap!
// ----------------------------------- | ||
|
||
:host .datetime-buttons ion-buttons { | ||
display: block; |
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.
display: block; | |
display: flex; | |
flex-flow: column; | |
align-items: stretch; | |
gap: globals.$ion-space-250; |
If you want to implement this in a different way that's fine but it looks like there is a gap in Figma between buttons.
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.
Issue number: internal
What is the current behavior?
The footer buttons (confirm, clear, and cancel) do not match the ionic theme styles.
What is the new behavior?
ionic
.ionic
.Does this introduce a breaking change?
Other information
Preview