Page MenuHomePhabricator

Audit border colours in VE
Closed, ResolvedPublic

Assigned To
Authored By
Esanders
Oct 7 2025, 10:50 AM
Referenced Files
F66736029: image.png
Oct 7 2025, 11:08 AM
F66735908: image.png
Oct 7 2025, 10:50 AM
F66735898: image.png
Oct 7 2025, 10:50 AM
F66735895: image.png
Oct 7 2025, 10:50 AM
F66735902: image.png
Oct 7 2025, 10:50 AM

Description

Codex has a rather large list of border colours to choose from (10 of which are shades of grey): https://doc.wikimedia.org/codex/latest/design-tokens/border.html

VE uses some colours from the old design guide that are no longer on that list, specifically #eaecf0 / color.gray100:

Separator between multiple context items on desktop & mobile, and link label
image.png (250×417 px, 25 KB)
Close button separator on mobile toolbar
image.png (114×450 px, 15 KB)
Horizontal separators between head/body/foot on mobile
image.png (275×439 px, 17 KB)
Symbol list button borders. Fixed in T406982
image.png (215×562 px, 20 KB)
Add new image button in gallery dialog
image.png (145×272 px, 3 KB)

The lightest grey allowed now is #dadde3 / color.gray200 / border-color-muted, although that is currently unused in VE. In many places we are using #c8ccd1 / color.gre300 / border-color-subtle for internal borders (e.g. desktop toolbar separators, visual diff sidebar).

Event Timeline

Change #1194170 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Replace gray100 borders with @border-subtle (gray300)

https://gerrit.wikimedia.org/r/1194170

Change #1194173 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Replace gray100 borders with @border-subtle (gray300)

https://gerrit.wikimedia.org/r/1194173

I agree on using border-color-muted when the border is purely decorative and it's not really needed. So I think we could use it for all the examples listed in the task.

Except for symbol list button borders. Here, we should use a Normal Neutral Button instead of creating a custom button with custom hover and active states.

image.png (215×562 px, 20 KB)

The reason we don't use regular buttons there is because buttons are variable width based on their content, whereas we want the symbol list to align to a grid, so each button is fixed width, and with tighter margins. We should probably address that feature in a separate task.

Change #1194170 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Replace gray100 borders with @border-subtle (gray300)

https://gerrit.wikimedia.org/r/1194170

Is there more that needs to be done here now those gray100 borders have been replaced?

Test wiki created on Patch demo by BMartinezCalvo (WMF) using patch(es) linked to this task:
https://7b73b67137.catalyst.wmcloud.org/w/

I've reviewed the updated borders and they look good.

Change #1196039 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (714b3ae07)

https://gerrit.wikimedia.org/r/1196039

Change #1194173 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Replace gray100 borders with @border-subtle (gray300)

https://gerrit.wikimedia.org/r/1194173

DLynch assigned this task to Esanders.
DLynch added a project: Skipped QA.

Excellent, thanks for checking! (And sorry you had to make a patchdemo -- I didn't notice that the second patch I'd +2'd had its merge stall out.) We can probably count that as QA for this.

Change #1196039 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (714b3ae07)

https://gerrit.wikimedia.org/r/1196039