Page MenuHomePhabricator

Revise the appearance of the sticky header's "Add topic" button (activated state)
Open, Needs TriagePublic

Description

This task involves the work of revising how the Add topic appears when people click / press it.

Current Behavior

NormalHover❗️Active (current)
image.png (44×120 px, 1 KB)
image.png (46×129 px, 1 KB)
image.png (48×137 px, 2 KB)

The active state is definitely wrong (blue icon on blue background)
The height of the button is also less than that of other buttons in the sticky header.

Desired behavior

Based on the Design System (OOUI or Codex), here are the different states we should have for our 'Quiet button'.

Normal✅ Hover✅ Active✅ Focus✅ Disabled
Screen Shot 2022-08-16 at 17.06.53.png (294×612 px, 13 KB)
Hover-addtopic.png (198×466 px, 31 KB)
active_addtopic.png (194×476 px, 30 KB)
Screen Shot 2022-08-16 at 17.15.47.png (314×612 px, 15 KB)
Screen Shot 2022-08-16 at 17.15.52.png (276×560 px, 12 KB)

→ Link to Codex Documentation – Quiet Button (make sure to toggle quiet & progressive in the parameters)

Open questions

  • 1. The height of the "Active (current)" button is less than that of other buttons in the sticky header. How – if at all – should the height of this button be adjusted?
    • The Web and Design Systems Teams are addressing this question in T314323.
  • 2. How should the active state of the Add topic button appear?

Done

  • Answers to all Open questions are documented
  • Desired behavior is implemented

Event Timeline

Height seems to be because of how the vector styles treat .mw-ui-icon-element and .mw-ui-button:not(.mw-ui-icon-element). It's definitely deliberately-specified, though I agree that the highlights being different between adjacent buttons seems a bit strange.

You can see the same design-choice happening in the non-sticky header between your username and the notification buttons (albeit with different classes involved):

image.png (122×630 px, 11 KB)
image.png (110×566 px, 11 KB)

I think the icon should have the same color as the text next to it at all times—in normal mode dark blue, in hover mode a somewhat lighter blue (if I see it correctly), and in active mode white.

ppelberg renamed this task from Review "Add topic" sticky header button states to Revise the appearance of the sticky header's "Add topic" button (activated state).Aug 9 2022, 9:47 PM
ppelberg added projects: Editing-team, TPP-Phase1.
ppelberg updated the task description. (Show Details)
ppelberg moved this task from Tickets for Consideration to Page Frame on the TPP-Phase1 board.
ppelberg moved this task from Backlog to Triaged on the DiscussionTools board.
  • 1. The height of the "Active (current)" button is less than that of other buttons in the sticky header. How – if at all – should the height of this button be adjusted?

@nayoub before I signal to engineering that this task is ready to be worked on, what do you think about the question I'm quoting above that @DLynch posed in T314488#8128473?

@ppelberg I wonder why that height changes, I guess it has to do with the icons being bigger due to badges. Given they serve different purposes and thus visual treatments, I don't see any particular issue with this.
cc @alexhollender_WMF – curious to get your thoughts on this :)

ppelberg updated the task description. (Show Details)
ppelberg updated the task description. (Show Details)

@ppelberg I wonder why that height changes, I guess it has to do with the icons being bigger due to badges. Given they serve different purposes and thus visual treatments, I don't see any particular issue with this.
cc @alexhollender_WMF – curious to get your thoughts on this :)

I mentioned this to @nayoub in Slack, adding here for additional clarity: after we do T314323: [EPIC, Visual refinements] Standardize icon buttons & links (Vector 2022) all buttons should be 32px tall. cc @bmartinezcalvo who is helping with that and can further clarify any questions about correct button sizing.

Currently there are some visual differences between our OOUI and our Codex quiet progressive buttons inspect the Figma here:

Captura de Pantalla 2022-08-29 a las 12.25.25.png (906×2 px, 541 KB)

As our Codex components are the ones we are improving and they are more aligned with what we want for our Design System, I would recommend to use the Codex quiet button states that are the following:

  • Hover: background-color-progressive--subtle
  • Active: our current colors are background-color-progressive--active for background and color-inverted for text

(The rest of states are the same in OOUI and Codex components)

hi @bmartinezcalvo! The guidance you shared in T314488#8193133 is helpful...thank you!

A resulting meta question for you (I think)...

Is the current expectation for teams like us (the Editing Team) to start designing and implementing interfaces using Codex?

Note: I ask the above wondering whether we ought to continue using OOUI knowing that there will be some future point wherein UI components like the Add topic button we are talking about here will be migrated to Codex, whether we ought to use Codex UI components for the Add topic button now, something else?

Height seems to be because of how the vector styles treat .mw-ui-icon-element and .mw-ui-button:not(.mw-ui-icon-element). It's definitely deliberately-specified, though I agree that the highlights being different between adjacent buttons seems a bit strange.

You can see the same design-choice happening in the non-sticky header between your username and the notification buttons (albeit with different classes involved):

image.png (122×630 px, 11 KB)
image.png (110×566 px, 11 KB)

Hi @DLynch as an FYI our current plan is to eventually replace mw-ui-icon with Codex. We're talking with design systems team about how to keep them in sync (as they are currently not but they should be). T314323 is the task for that.

Notifications button are a whole separate issue we're trying to find space to do with the Growth team (see https://phabricator.wikimedia.org/T257143). OOUI is not loaded on page view, and currently loaded only when you click those icons. We're trying to minimize use of OOUI in the new Vector as keeping mw-ui-icon and Codex is complicated enough without adding OOUI to the mix!

hi @bmartinezcalvo! The guidance you shared in T314488#8193133 is helpful...thank you!

A resulting meta question for you (I think)...

Is the current expectation for teams like us (the Editing Team) to start designing and implementing interfaces using Codex?

@ppelberg the intention is to start applying the same styles defined in Codex, since they are the ones we are improving and those we want to last over time. From a technical point of view, each team must decide whether to use OOUI/Codex based on their own requirements.

hi @bmartinezcalvo! The guidance you shared in T314488#8193133 is helpful...thank you!

A resulting meta question for you (I think)...

Is the current expectation for teams like us (the Editing Team) to start designing and implementing interfaces using Codex?

@ppelberg the intention is to start applying the same styles defined in Codex, since they are the ones we are improving and those we want to last over time. From a technical point of view, each team must decide whether to use OOUI/Codex based on their own requirements.

Understood – thank you for sharing this additional context, @bmartinezcalvo ^ _ ^

@nayoub, based on what Barbara shared above, it sounds like we ought to modify the task description's Desired behavior to match the specification in T314488#8193133...does that sound right to you?

Thanks a lot @bmartinezcalvo for all the context!

@nayoub, based on what Barbara shared above, it sounds like we ought to modify the task description's Desired behavior to match the specification in T314488#8193133...does that sound right to you?

Yes agreed @ppelberg updating now :)

ppelberg added a subscriber: VPuffetMichel.

Next step

  • @VPuffetMichel to ask Web Team how they would like us to proceed on implementing the styling described in the task description? E.g. Would they like us to implement styling before Codex is introduced within the sticky header? Would Web Team like to do this interim implementation? Would they prefer we wait on working on this task until the requisite Codex style is available?

In terms of colors and heights, web team (mostly I) and @Volker_E are working on aligning those as part of T317800 and associated epic T314323 (participation welcomed if that doesn't address the issues here!). I would rather we didn't add interim solutions here, unless you are happy to own fixing any UI regressions relating to the work we'll doing.

Regarding the icon being the wrong color in the active state, feel free to fix that with an interim solution (T198770 has some ideas worth trying). Currently, that's not in the scope of the work I'm trying to address with Volker.

META
Per the 29-Sep, "Web Editing check-in" meeting, we (the Editing Team) are going to wait on addressing this issue until Web/DST are able to offer guidance about how/if the buttons within the Vector 2022 sticky header will become CODEX components.