-
Notifications
You must be signed in to change notification settings - Fork 214
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
Update close buttons #3225
Update close buttons #3225
Conversation
Size Change: +104 B (0%) Total Size: 939 kB
ℹ️ View Unchanged
|
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 update looks great, I noticed some room for improvement to reach more consistency with other recent upgrades.
The license explanation popup
The button should be small / transparent / gray
, and the icon change to close
The report popup
The button should be small / transparent / gray
, and the icon change to close
The pages modal
The change is correct
The content settings modal
The size (large
) is correct, but it needs to be transparent / gray
, and the icon change to close
Notification bar
The change is correct
Modal content
The change is correct
96fa70f
to
4b802f1
Compare
3cabf1d
to
761ca66
Compare
761ca66
to
95d8bfd
Compare
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 looks great ✨ 🚀
Based on the medium urgency of this PR, the following reviewers are being gently reminded to review this PR: @AetherUnbound Excluding weekend1 days, this PR was ready for review 5 day(s) ago. PRs labelled with medium urgency are expected to be reviewed within 4 weekday(s)2. @obulat, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes
|
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 the VCloseButton
component being deprecated/removed?
Nothing against this PR, the changes LGTM but I have some objection to the design itself that I want to bring to @fcoveram's notice. The cross button is now much bigger than all other iconography in the app.
If need be, it can be tackled separately.
Yes, it's being removed because it's using the old button underneath. There's one CloseButton left in the Global audio player, but that should be updated separately because the global audio player styles have changed.
@fcoveram, I'm going to merge this PR, but if you agree with @dhruvkb, we can update the size in a different PR. |
I agree the icon variant looks bigger, but the idea is to be consistent with modal and dialogs hierarchy. Modals (metasearch, settings drawer, and media details' designs) and popovers (report, and license explanation) use the big version, whereas messages use the small one. |
Fixes
Fixes #467 by @obulat
Description
This PR replaces
VCloseButton
withVIconButton
for the close button in several components. This uses the updated button styles and removes the old button styles from the app.The license explanation popup
On desktop widths
The report popup
Single result pages, both desktop and mobile widths
The pages modal
Content pages, i.e.
/about
, on mobile widthsThe content settings modal
Search page on mobile widths
Notification bar
Dark mode on homepage, light mode on the search page
Modal content
External sources form, images search page
This is a part of the effort of replacing
VOldIconButton
that is used byVCloseButton
. Now, the only component that usesVCloseButton
is the global audio player, which will be updated in a separate PR since the design was changed recently.Testing Instructions
Run the app and open the search page (localhost:8443/search/?q=cat) on a desktop width.
For the license explanation button, open the filters sidebar and click on a license explanation button
(?)
. Check that the close button's focus ring looks correct.Check other buttons listed in the description of the PR.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin