From 0657fd82bf34c19090142cd775f416b3caf0a5c7 Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Tue, 11 Jul 2023 16:17:36 -0400 Subject: [PATCH] refactor(location-field): Adjust CSS for hiding dropdown. --- __snapshots__/storybook.test.ts.snap | 1274 ++++++++++++------------- packages/location-field/src/styled.ts | 4 +- 2 files changed, 639 insertions(+), 639 deletions(-) diff --git a/__snapshots__/storybook.test.ts.snap b/__snapshots__/storybook.test.ts.snap index 82768ec26..046e76ebf 100644 --- a/__snapshots__/storybook.test.ts.snap +++ b/__snapshots__/storybook.test.ts.snap @@ -182303,17 +182303,17 @@ exports[`Storyshots LocationField/Desktop Context Auto Focus With Multiple Contr `; exports[`Storyshots LocationField/Desktop Context Auto Focus With Multiple Controls 2`] = ` -.c4 { +.c3 { display: inline-block; vertical-align: middle; overflow: hidden; } -.c5 { +.c4 { color: #333; } -.c7 { +.c6 { -webkit-clip: rect(0,0,0,0); clip: rect(0,0,0,0); display: inline-block; @@ -182322,16 +182322,16 @@ exports[`Storyshots LocationField/Desktop Context Auto Focus With Multiple Contr width: 0; } -.c2 { +.c1 { border: none; background: none; } -.c3 { +.c2 { width: 30px; } -.c9 { +.c8 { background-clip: padding-box; background-color: #fff; border-radius: 4px; @@ -182350,7 +182350,7 @@ exports[`Storyshots LocationField/Desktop Context Auto Focus With Multiple Contr z-index: 1000000; } -.c1 [aria-expanded="false"] ~ .c8 { +input[aria-expanded="false"] ~ .c7 { -webkit-clip: rect(0,0,0,0); clip: rect(0,0,0,0); display: inline-block; @@ -182359,7 +182359,7 @@ exports[`Storyshots LocationField/Desktop Context Auto Focus With Multiple Contr width: 0; } -.c6 { +.c5 { border: none; box-shadow: none; font-size: 17px; @@ -182393,13 +182393,13 @@ exports[`Storyshots LocationField/Desktop Context Auto Focus With Multiple Contr aria-controls="from-listbox" aria-expanded={false} aria-label="Open the list of location suggestions" - className="c1 c2 c3" + className="c1 c2" onClick={[Function]} tabIndex={-1} >