News for hackers. Stuff that matters.
Re:Why Is the Django Admin "Ugly"? by vasdae on Friday October 27, 2023 @08:56AM (#38037802)
What's ugly about it? I'm looking at the screenshot and it looks perfectly fine to me?
Re:Why Is the Django Admin "Ugly"? by vladvasiliu on Friday October 27, 2023 @09:00AM (#38037847)
No five-level hamburger menu, you can actually see stuff without scrolling and panning. And, probably, the most horrific of all: the text has enough contrast so you can actually read it!
Re:Why Is the Django Admin "Ugly"? by ThibWeb on Friday October 27, 2023 @09:30AM (#38038205)
Text contrast is actually one of the most common issues with the Django admin. Just on the screenshot in the article, the white text against the light blue breadcrumb and nav headers background is too low contrast as per WCAG 2.0 calculations.
Re:Why Is the Django Admin "Ugly"? by Euphorbium on Friday October 27, 2023 @09:11AM (#38037967)
I think it is lacking infinite scroll /s
Re:Why Is the Django Admin "Ugly"? by yakubin on Friday October 27, 2023 @09:09AM (#38037945)
The only thing I’ve noticed is that the “ADD POST” text is at a different height than the “+” next to it, which is a bit jarring. It’s also the only button shaped as a rectangle with rounded corners on the page (aside from “Go” which is styled differently as well). Overall, I see 4 different styles of buttons on this page. But other than the buttons, it seems fine to me.
Re:Why Is the Django Admin "Ugly"? by ThibWeb on Friday October 27, 2023 @09:20AM (#38038073)
Yep, the different button styles for no clear reasons is one. This is even more apparent on other views. On that screenshot, you can also spot questionable alignment between e.g. checkboxes and the title text in the table. Contrast issues with text against different background colors. And I’d also question whether UPPER CASE TEXT is necessary.
Re:Why Is the Django Admin "Ugly"? by Izkata on Friday October 27, 2023 @09:54AM (#38038444)
In the screenshot I only see 1 button on the page... The two styles of "Add" are links to another page, and I'm not seeing at all whatever the 4th one you're seeing is. Is the 4th below the screenshot?
Re:Why Is the Django Admin "Ugly"? by ThibWeb on Friday October 27, 2023 @09:07AM (#38037923)
"Ugly" might not be the best one-word description but there are a lot of basic accessibility issues with the Django admin. The general user experience could also really benefit from using more modern design patterns (for example modal windows over pop-up windows).
Re:Why Is the Django Admin "Ugly"? by Joker_vD on Friday October 27, 2023 @09:32AM (#38038221)
But... transition from modals to pop-ups was a part of "going web 2.0" design switch. Now we're going back to modals and hail it as "modern"?
Re:Why Is the Django Admin "Ugly"? by ThibWeb on Friday October 27, 2023 @09:55AM (#38038446)
Sorry I’m not sure I understand your question? I wasn’t on the internet before web 2.0, by modals I mean things like custom-styled <dialog> element[1] and the `dialog` ARIA role, which I would say are a more recent pattern than pop-up windows. "Modern" might not be the best term here, I should have just said more "usable" perhaps.

[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/di...

Re:Why Is the Django Admin "Ugly"? by Joker_vD on Friday October 27, 2023 @11:07AM (#38039457)
From the link you posted:

    The HTML <dialog> element is used to create both modal and non-modal dialog boxes. Modal dialog boxes interrupt interaction with the rest of the page being inert, while non-modal dialog boxes allow interaction with the rest of the page.
The modal dialogs are easier for the programmer to use but they're quite inconvenient because generally, they ask you a question you can answer only by looking at/interacting with the rest of the page. Which you can't do (the modal dialogs on web also almost never can be dragged around).
Re:Why Is the Django Admin "Ugly"? by ThibWeb on Friday October 27, 2023 @12:38PM (#38040713)
Gotcha, thank you. The reasons you mentioned are excellent, definitely a pattern that’s best avoided unless there are no other alternatives.
Re:Why Is the Django Admin "Ugly"? by Izkata on Friday October 27, 2023 @01:40PM (#38041519)
The term "modal" pre-dates <dialog> by a huge amount, and generally refers to a popup within the same window that prevents interacting with what's behind the popup (I believe the term comes from how you "change modes" when it appears). On the web they used to be implemented using <div> and CSS, often with some sort of javascript library so you didn't have to do it yourself.
Re:Why Is the Django Admin "Ugly"? by kccqzy on Friday October 27, 2023 @01:11PM (#38041120)
I think you remembered it wrong. Going from pop-ups was earlier than modals. Pop-ups were supported by things like window.open() which has been around forever (perhaps NetScape 2.0?). In contrast designing a modal requires some slightly more recent CSS like absolute positioning (I believe CSS2 so still within the previous century).
Re:Why Is the Django Admin "Ugly"? by modo_mario on Friday October 27, 2023 @09:16AM (#38038037)
Why would modal windows be better than pop-up ones?
Re:Why Is the Django Admin "Ugly"? by ThibWeb on Friday October 27, 2023 @09:23AM (#38038118)
I’d say because you can lose context more easily when having to move to a separate browser tab / window to complete a task? And I suspect the multi-window paradigm is also harder to navigate for keyboard / screen reader users (as opposed to an in-page modal which correctly captures the keyboard focus while open).
Re:Why Is the Django Admin "Ugly"? by Nextgrid on Saturday October 28, 2023 @03:13AM (#38047848)
Is that a real problem for professional users or just a kluge to work around the ever-decreasing IT skills of today's generation that can no longer do basic things such as window management?

I think an OS-managed popup window is superior to a page-managed modal since it allows you to move the window out of the way or even switch away from it, where as a page-managed modal is generally fixed in place, blanks out the parent page, and the only way to get back that parent page would be to dismiss the modal which discards your input.

I'm also not sure whether the accessibility concerns are substantiated - surely window management would be a well-trodden path for any screen-reader user and whatever you build yourself in-browser would have different and unexpected semantics that would require the user to get used to it.

Re:Why Is the Django Admin "Ugly"? by clansimus on Friday October 27, 2023 @10:10AM (#38038649)
Off of just the screenshot, inconsistent spacing and poor font contrast stick out to me
Re:Why Is the Django Admin "Ugly"? by stuckinhell on Friday October 27, 2023 @10:17AM (#38038740)
It gets extremely ugly and clunky when you edit related tables/models together in one view using their builtin inlineadmins.

The devil is the details for real world usage on your data and it's relationships.