Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -318,20 +318,13 @@ export const StyleSourceControl = ({
disabled={disabled}
aria-current={selected && state === undefined}
role="button"
onClick={onSelect}
hasError={error !== undefined}
>
<Flex
grow
css={{
position: "relative",
paddingBlock: theme.spacing[3],
paddingInline: theme.spacing[4],
}}
>
<Flex grow css={{ padding: theme.spacing[2] }}>
<StyleSourceButton
disabled={disabled || isEditing}
isEditing={isEditing}
onClick={onSelect}
tabIndex={-1}
>
<Flex align="center" justify="center" gap="1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,28 +204,26 @@ const TextFieldBase: ForwardRefRenderFunction<
onKeyDown={onKeyDown}
>
{/* We want input to be the first element in DOM so it receives the focus first */}
{editingItemId === undefined && (
<InputField
{...textFieldProps}
variant="chromeless"
css={{
fontVariantNumeric: "tabular-nums",
lineHeight: 1,
order: 1,
flex: 1,
"&:focus-within, &:hover": {
borderColor: "transparent",
},
}}
size="1"
value={label}
onClick={onClick}
ref={inputRef}
inputRef={internalInputRef}
spellCheck={false}
aria-label="New Style Source Input"
/>
)}
<InputField
{...textFieldProps}
variant="chromeless"
css={{
fontVariantNumeric: "tabular-nums",
lineHeight: 1,
order: 1,
flex: 1,
"&:focus-within, &:hover": {
borderColor: "transparent",
},
}}
size="1"
value={label}
onClick={onClick}
ref={inputRef}
inputRef={internalInputRef}
spellCheck={false}
aria-label="New Style Source Input"
/>
{value.map((item) => (
<StyleSourceControl
key={item.id}
Expand Down
Loading