-
Notifications
You must be signed in to change notification settings - Fork 23
cc-dialog: fix close button positioning
#1642
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
cc-dialog: fix close button positioning
#1642
Conversation
|
🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/cc-dialog/fix-responsive-close-btn/index.html. This preview will be deleted once this PR is closed. |
🧐 Visual tests report for PR #1642The latest visual tests report is available. Please review the results.
6 components impacted
This comment was generated automatically by the Visual tests workflow. |
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.
On the current fix, LGTM, works well now.
On the overall implementation, I think the exposed custom props are good as is: we hide the complexity and I prefer that (without further insights).
We can deal with the internal complexity for now and maybe find a cleaner way later (apart from changing the layout, I do not have a better solution in mind, except maybe some grid shenanigans).
edit: shootout to the visual diff, so nice to have!
pdesoyres-cc
left a comment
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.
It works fine now. well done 👍
3109141 to
385a4f6
Compare
The internal variable was using the same name as the public CSS custom property, causing user-provided values to be overridden. Renamed the internal variable to --default-dialog-padding so it's used as a fallback.
The close button position is now derived from the dialog padding, ensuring it stays properly positioned when the padding changes on narrow screens.
385a4f6 to
eed38b7
Compare
|
🔎 The preview has been automatically deleted. |
🧹 Visual Changes Report deletedThe report and its associated data have been deleted because this PR has been closed. This comment was generated automatically by the Visual Changes workflow. |
Fixes #1637
What does this PR do?
--cc-dialog-paddingthat was not doing what it was supposed to 🙈.How to review?
--cc-dialog-paddingon thecc-dialogelement or its parents.