| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[Extensions] Fix extensions menu right-spacing and shifting on Linux
Previously, when opening the extensions menu on Linux with a fresh user
profile and hovering over the extensions button, the menu would shift to
the left and have an unwanted gap on the right side.
The culprit CL was found to be crrev.com/c/8008153 which set the site
permissions label text to the full accessible name. These names can get
quite long (for example, "Always on all sites. Installed by your
administrator”) which would cause the menu to request an unconstrained
width, inflating the preferred width of the initial bubble frame on
Linux. On Linux, mouse hover triggers an explicit Views re-layout pass
that contracts the inner content back to standard width while leaving
the bubble window frame at its initial inflated size, whereas Windows
and macOS do not perform this hover-triggered layout recalculation.
This CL elides the site permissions label (this is safe to do because
eliding is purely for rendering, a11y still stores the full string and
VO will announce the full, un-elided string) and updates the flex
specification so that the label can shrink to 0 when space is tight, but
won't grow larger than its text.
Screencast showing that the menu does not shift and have the unwanted
gap when extensions button is first clicked and hovered:
https://screencast.googleplex.com/cast/NDUwNTgyNjI5MDA0MDgzMnxhZGE4ZTNiZS1iYw
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |