We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc2cbe commit 1f1ee86Copy full SHA for 1f1ee86
packages/components/src/Form/Inputs/Combobox/ComboboxInput.tsx
@@ -208,9 +208,10 @@ export const indicatorSize = '1rem'
208
export const indicatorPadding = '.5rem'
209
export const comboboxPaddingRight = `calc(2 * ${indicatorPadding} + ${indicatorSize})`
210
211
+const base64 = typeof window !== 'undefined' ? window.btoa : btoa
212
const indicatorPrefix = 'data:image/svg+xml;base64,'
213
export const selectIndicatorBG = (color: string) =>
- `url('${indicatorPrefix}${btoa(
214
+ `url('${indicatorPrefix}${base64(
215
indicatorRaw.replace('currentColor', color)
216
)}')`
217
0 commit comments