Commit c09ecb65 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[breadcrumb] Add 48px tap-target box around the elider drop-down

Position relative the <span elider> child with 48px size, and shift it
into place for centering.

Bug: 1035691
Change-Id: I06e9b6e0e2ed4527902c25265a709682f013a1c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2094428
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748442}
parent be102af4
...@@ -73,13 +73,17 @@ const breadCrumbTemplate = ` ...@@ -73,13 +73,17 @@ const breadCrumbTemplate = `
} }
span[elider] { span[elider] {
--tap-target-shift: -7px;
-webkit-mask-image: url(../../images/files/ui/menu_ng.svg); -webkit-mask-image: url(../../images/files/ui/menu_ng.svg);
-webkit-mask-position: center; -webkit-mask-position: center;
-webkit-mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
background-color: currentColor; background-color: currentColor;
height: 36px; height: 48px;
margin-top: var(--tap-target-shift);
margin-inline-start: var(--tap-target-shift);
min-width: 48px;
position: relative;
transform: rotate(90deg); transform: rotate(90deg);
width: 36px;
} }
button[elider] { button[elider] {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment