Skip to content
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

Fixed #34917 -- Underlined Links in Django Admin. #17883

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

Conversation

Myrausman
Copy link

Fixed ticket #34917 - Links in the Django admin are now underlined.

Signed-off-by: Myrausman <maira.usman5703@gmail.com>
@Myrausman
Copy link
Author

@knyghty ,I have updated the code and it's now working as expected. Could you please review it at your convenience?
image

@cheng-liven
Copy link

Can we have an option to turn this off easily? Most of our admin lists have links in every column and it will look aggressively.

(Editable fields in the list as shown in the example are probably not something very popular due to the risk of data lost from concurrent editing.)

@knyghty
Copy link
Member

knyghty commented Feb 21, 2024

@cheng-liven you can already easily turn it off by overriding the CSS, nothing more is needed here.

@nessita
Copy link
Contributor

nessita commented Feb 21, 2024

Hello! Thanks for your contribution. Please remember that when this work is ready for review, you need to ensure that the title references the corresponding ticket and to adjust the ticket flags in the Trac system so this PR gets added to the "branches needing review" section of the Django Developer Dahsboard. More information in these docs.

@Myrausman Myrausman changed the title Underlined Links in Django Admin. Underlined Links in Django Admin. ticket [#34917](https://code.djangoproject.com/ticket/34917) Feb 21, 2024
@Myrausman Myrausman changed the title Underlined Links in Django Admin. ticket [#34917](https://code.djangoproject.com/ticket/34917) Underlined Links in Django Admin (ticket #34917). Feb 21, 2024
@knyghty knyghty requested review from knyghty and a team February 21, 2024 14:42
@Myrausman Myrausman changed the title Underlined Links in Django Admin (ticket #34917). Fixed #34917 -- Underlined Links in Django Admin. Feb 21, 2024
@sarahboyce sarahboyce added selenium Apply to have Selenium tests run on a PR screenshots 🖼️ labels Apr 18, 2024
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 for this @Myrausman this looks a great start ⭐

The scope of the ticket describes that all links in the "main content area" of the admin should be underlined. "main content area" is defined as "not the header or nav sidebar".

This currently only covers links for the admin change list. I beleive the scope is a bit larger, as other admin pages are not included here.

Some things that come to mind and need investigating include:

We need a decision on more custom things like if a form added a link in a help text.

Can you investigate some of the other pages of the Django admin and confirm if we need to do more css updates to cover these?

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
5 participants