commit | 83abee2b14d45b5ba9ae4797d90e036319c548a6 | [log] [tgz] |
---|---|---|
author | Ankit Mishra <[email protected]> | Tue Apr 28 11:06:59 2020 |
committer | Commit Bot <[email protected]> | Tue Apr 28 12:36:43 2020 |
tree | 6338b247eca2e8ae348203b870b0610e8683a3bd | |
parent | fea5df4a55624a17c7e25720f40e7709f2269531 [diff] [blame] |
Fix focus not being centered for inline buttons Bug: chromium:1075871 Screenshot: https://imgur.com/UkntJIw Change-Id: Ifae3f73d44bd29228c1e5cde271d2e8dfc0e837f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2170226 Commit-Queue: Jan Scheffler <[email protected]> Reviewed-by: Jan Scheffler <[email protected]> Auto-Submit: Ankit Mishra <[email protected]>
diff --git a/front_end/ui/inlineButton.css b/front_end/ui/inlineButton.css index d6d6c51..eafa1c9 100644 --- a/front_end/ui/inlineButton.css +++ b/front_end/ui/inlineButton.css
@@ -5,17 +5,12 @@ */ :host { - display: inline-block; + display: inline-flex; border: 1px solid #ddd; position: relative; top: 7px; margin: 2px; background-color: var(--toolbar-bg-color); -} - -:host > * { - position: relative; - left: -2px; + justify-content: center; width: 28px; - height: 26px; -} \ No newline at end of file +}