Normalize Input Styling across the app

AI-generated summary

The discussion focuses on normalizing input styling across the Discourse app to ensure consistency. sam highlights four different input styles currently in use—topic title, body, category, and tags—each with varying borders, rounded corners, and shadows, calling for a unified approach. awesomerobot agrees and proposes standardizing inputs by removing shadows and rounded corners, adding borders and background colors for visibility, with styling enhancements left to themes. jomaxro shares a comparison of the new consistent style in advanced search, noting a preference for the previous look due to darker border lines. codinghorror supports the new consistency, while mcwumbly suggests opportunities to improve layout. sam points out a 1px inconsistency in mobile reply controls, prompting further scrutiny. jomaxro identifies layout issues in editing fields, noting the category chooser is shorter and misaligned, and that tags still use the outdated select2 instead of the new select-kit. j.jaffeux confirms the tag chooser is still in progress. sam notes a regression in styling, and awesomerobot responds with fixes for title editing and horizontal scrollbars, aligning them with the new composer style.

This has always driven me nuts, but we should fix it with the new composer here.

We have 4 different styles going:

Topic title uses, inset:

image

Topic body uses, nothing, and no rounded corners:

Topic category uses nothing and rounded corners:

image

Topic tags uses, border and square corners

image

We got to do something about this.

「いいね!」 27

I agree with this, but I think it’s a good opportunity to make all inputs consistent across Discourse; otherwise I’m just adding overrides at the composer level.

I don’t think it would be very difficult. I’d suggest removing shadows and rounded corners, and adding a border and background color everywhere. That would ensure all inputs are always visible because of either the border or the background color, and then shadows and rounded corners are theme-level additions.

「いいね!」 5

Agree, this makes sense, minimizing the amount of styling going on the default theme makes it way easier to theme Discourse.

Perhaps have a look at this once you are done with the composer.

「いいね!」 4

This is the advanced search with the new consistent style:

This is how it used to look:

Not sure why, but I don’t like the new look - perhaps it’s the darker border lines.

Side note @j.jaffeux, the datepicker is not aligned.

「いいね!」 6

I think the new consistency looks great, personally!

「いいね!」 4

I think the darker outlines make it more obvious that the layout of other fields could be made more pleasing. For instance, it’s more clear now that the category dropdown sticks out on the right.

Maybe there is an opportunity here to improve this page at some point?

「いいね!」 5

@awesomerobot @j.jaffeux just noticed a 1px diff here: (reply is one px shorter than reply controls on mobile)

Its not enough to yell OH NO disasta pasta, but, you know, I have problems so I am just spreading my OCD around.

「いいね!」 8

aghhh where is this 1px coming from

「いいね!」 3

Noticed another inconsistency - editing a topic title, category, and tags.

Category chooser is shorter than title and tags field, category chooser is closer to tags than to the title, and tags has what looks to be two borders.

Edit: wait a sec…looks like tags is still using select2 not the new select-kit. Is that intentional @j.jaffeux?

Edit 2: Nevermind then @awesomerobot - I’ll check this again once Joffrey is finished.

「いいね!」 3

yes it’s not done yet, I’m working on {{tag-chooser}} but it’s quite a challenging one, the tag/group chooser are the last before I can remove select2.

「いいね!」 7

This regressed due to the new styles

「いいね!」 4

This was bothering me so I didn’t wait for the tag input update; just pushed an update that should make the layout for editing titles match the new composer

Also pushed a fix for the horizontal scrollbar on the category modal

「いいね!」 8