Page MenuHomePhabricator

[Bug] Page's change language button focus padding is truncated
Closed, DeclinedPublic

Description

Steps to Reproduce

  1. Visit https://en.m.wikipedia.org/wiki/Dog
  2. Right click the change language button and select inspect
  3. Right click the parent li element and force the state to :focus
    Screenshot from 2018-04-16 15-08-44.png (909×960 px, 184 KB)

Expected Results

  • Change language button has focused padding consistent with the download PDF button
    Screenshot from 2018-04-16 15-09-48.png (909×960 px, 186 KB)

Actual Results

  • Change language button's focused padding is truncated on one side

Environments Observed

  • enwiki

Browser Version

  • Chromium v65.0.3325.181 (Nexus 6P simulator)

OS Version

  • Ubuntu v17.10 64b

Device Model

  • Desktop

Device Language

  • English

Event Timeline

@alexhollender - feel free to increase priority if necessary

@Niedzielski in what way were you thinking of this as a bug? In terms of design/alignment it looks correct to me.

In terms of the CSS:

  • the button has the correct padding
  • the button is floated left, and the container is set to overflow:hidden, so the padding to the left of the button is clipped

That seems like a fine way to achieve the desired layout to me

@alexhollender, if a user is tabbing through a page, each interactive element should light up uniformly. Visually, the change language button as it is now appears asymmetrical, clipped, and inconsistent with the other buttons. Physically, the change language button hit area is smaller so it's harder to tap the change language buttons.

@Volker_E curious what your thoughts are here? What is the proper way to handle this?

Jdlrobson subscribed.

@Volker_E @alexhollender given the 3 year silence, and Alex's earlier comment closing this out. Let me know if we need to reconsider. T

Given upstream changes, the focus area is consistent for all these menu items, although the border left and right are absent. Please open a specific task for that if we need to consider a follow up, but personally I'd rather focus efforts on getting us onto WVUI and fixing it there.

Screen Shot 2021-08-25 at 3.59.55 PM.png (146×370 px, 5 KB)