diff options
Diffstat (limited to 'packages/renderer/src/components/locationBar/LocationOverlayInput.tsx')
-rw-r--r-- | packages/renderer/src/components/locationBar/LocationOverlayInput.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/renderer/src/components/locationBar/LocationOverlayInput.tsx b/packages/renderer/src/components/locationBar/LocationOverlayInput.tsx index a09cc57..cbb5b06 100644 --- a/packages/renderer/src/components/locationBar/LocationOverlayInput.tsx +++ b/packages/renderer/src/components/locationBar/LocationOverlayInput.tsx | |||
@@ -34,6 +34,8 @@ const LocationOverlayInputRoot = styled('div', { | |||
34 | })<{ overlayVisible: boolean }>(({ theme, overlayVisible }) => { | 34 | })<{ overlayVisible: boolean }>(({ theme, overlayVisible }) => { |
35 | const itemStyle = { | 35 | const itemStyle = { |
36 | padding: '6px 0 7px 0', | 36 | padding: '6px 0 7px 0', |
37 | // Set text alignment explicitly so it can be flipped by `stylis-plugin-rtl`. | ||
38 | textAlign: 'left', | ||
37 | }; | 39 | }; |
38 | return { | 40 | return { |
39 | display: 'flex', | 41 | display: 'flex', |
@@ -86,12 +88,15 @@ const LocationOverlayInput = forwardRef( | |||
86 | <input | 88 | <input |
87 | ref={ref} | 89 | ref={ref} |
88 | className={`${className ?? ''} ${inputClassName}`} | 90 | className={`${className ?? ''} ${inputClassName}`} |
91 | dir="ltr" | ||
89 | {...props} | 92 | {...props} |
90 | /> | 93 | /> |
91 | {/* eslint-enable react/jsx-props-no-spreading */} | 94 | {/* eslint-enable react/jsx-props-no-spreading */} |
92 | {overlayVisible && ( | 95 | {overlayVisible && ( |
93 | <div aria-hidden className={`${className ?? ''} ${overlayClassName}`}> | 96 | <div aria-hidden className={`${className ?? ''} ${overlayClassName}`}> |
94 | <div className={clipClassName}>{overlay}</div> | 97 | <div className={clipClassName} dir="ltr"> |
98 | {overlay} | ||
99 | </div> | ||
95 | </div> | 100 | </div> |
96 | )} | 101 | )} |
97 | </LocationOverlayInputRoot> | 102 | </LocationOverlayInputRoot> |