Commit d455ed45 authored by Alex Danilo's avatar Alex Danilo Committed by Commit Bot

[selectionbar] Add cancel selection button focus ring

Adds a blue focus ring around the cancel selection button only when it's
being focused from keyboard interaction.

Sets width of the cancel selection button to match the width of buttons
on the action bar.

Bug: 1068079, 1065837
Change-Id: I2adad00e74dbf1a8515b4dabbdcc704c51aa8e0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139054Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Commit-Queue: Alex Danilo <adanilo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756971}
parent 66559848
......@@ -1045,13 +1045,19 @@ body.check-select #files-selected-label {
/* TODO(adanilo) document the calc() reason. */
body.files-ng #cancel-selection-button {
border: 1px solid transparent;
margin-inline-start: calc(10px + 1px);
width: 36px;
}
#cancel-selection-button:focus:not([tabindex='-1']):not(:active) {
body:not(.files-ng) #cancel-selection-button:focus:not([tabindex='-1']):not(:active) {
background-color: rgba(153, 153, 153, 20%);
}
html.focus-outline-visible body.files-ng #cancel-selection-button:focus:not([tabindex='-1']):not(:active) {
border: 1px solid var(--google-blue-600);
}
body:not(.files-ng) #cancel-selection-button > span {
display: inline-block;
font-weight: 500;
......
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