Commit 719d80e8 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Add interim fix for search input visual regression

Ensure that the `p-0` (0 padding) class rule supersedes the shared
`Input` component padding in cases when the search input is not
expanded.
parent 36874166
......@@ -161,7 +161,9 @@ export default function SearchInput({
},
{
// Make the input dimensionless when not expanded (or focused)
'max-w-0 p-0': !isExpanded,
// Make the 0-padding rule `!important` so that it doesn't get
// superseded by `Input` padding
'max-w-0 !p-0': !isExpanded,
// Make the input have dimensions and padding when focused or
// expanded. The left-margin is to make room for the focus ring of
// the search icon-button when navigating by keyboard. Set a
......
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