Skip to content

Fixed #35924 -- Removed icons from the Select/Remove all buttons in the FilteredSelectMultiple widget. #19699

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Antoliny0919
Copy link
Contributor

@Antoliny0919 Antoliny0919 commented Aug 3, 2025

Trac ticket number

ticket-35924

Branch description

continue PR...
Thank you for working on this ticket @ajosephau ⭐️

Removed the icons used in the Select/Remove all buttons of the FilteredSelectMultiple widget.

Before

Screenshot 2025-08-03 at 4 17 35 PM

After

Screenshot 2025-08-06 at 7 56 20 PM

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

Copy link
Contributor

@sarahboyce sarahboyce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I have minor suggestions

<use xlink:href="#clearall" x="0" y="4096" fill="#666666" />
<use xlink:href="#clearall" x="0" y="4608" fill="#447e9b" />
<use xlink:href="#chooseall" x="0" y="5120" fill="#666666" />
<use xlink:href="#chooseall" x="0" y="5632" fill="#447e9b" />
</svg>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can crop the svg, something like:

--- a/django/contrib/admin/static/admin/img/selector-icons.svg
+++ b/django/contrib/admin/static/admin/img/selector-icons.svg
@@ -1,4 +1,4 @@
-<svg width="16" height="192" viewBox="0 0 512 6144" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+<svg width="16" height="128" viewBox="0 0 512 4096" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
   <!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this part! Thank you.

Comment on lines 52 to 54
--selector-button-bg: #e9e9ed;
--selector-button-fg: #525252;
--selector-button-hover-bg: #d0d0d7;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of defining new styling, I think it might be worth reusing the existing button styling:

Screenshot from 2025-08-05 10-26-51

Notice that there is a "Reset password" button, I think we can have consistent styling with this (using --button-bg and not bold text).
Folks then have less button variations to learn, and if we make accessibility improvements to buttons, we have less variations to worry about

The @django/accessibility team might have an opinion here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I initially considered that approach as well.
However, since that button is not a link, I thought it might be better to style it differently, so I added a separate style.
That said, this is just my personal opinion, and I believe it wouldn’t be a problem to reuse the same style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
screenshots 🖼️ selenium Apply to have Selenium tests run on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants