Skip to content
Draft
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
1 change: 1 addition & 0 deletions ui/components/component-library/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { InputProps, InputType, InputComponent } from './input.types';
* Please use the Input component from @metamask/design-system-react instead.
* @see {@link https://metamask.github.io/metamask-design-system/?path=/docs/react-components-input--docs | Storybook Documentation}
* @see {@link https://github.com/MetaMask/metamask-design-system/tree/main/packages/design-system-react/src/components/Input | Component Source}
* @see {@link https://github.com/MetaMask/metamask-design-system/blob/main/packages/design-system-react/MIGRATION.md#input-component | Migration Guide}
*/
export const Input: InputComponent = React.forwardRef(
// TODO: Fix in https://github.com/MetaMask/metamask-extension/issues/31860
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { ReactNode, useEffect, useRef, useState } from 'react';
import classnames from 'clsx';
import { Input } from '@metamask/design-system-react';
import {
Box,
ButtonIcon,
ButtonIconSize,
Icon,
IconName,
IconSize,
Input,
Label,
Popover,
PopoverPosition,
Expand Down Expand Up @@ -203,12 +203,10 @@ export const DropdownEditor = <Item,>({
renderItem(selectedItem, false)
) : (
<Input
className="dropdown-editor__item-placeholder"
className="dropdown-editor__item-placeholder py-3"
placeholder={placeholder}
readOnly
isReadonly
tabIndex={-1}
paddingTop={3}
paddingBottom={3}
/>
)}
<ButtonIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,13 +1075,10 @@ exports[`NetworkListMenu should match snapshot when adding a network 1`] = `
class="mm-box dropdown-editor__item-dropdown mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-flex mm-box--justify-content-space-between mm-box--align-items-center mm-box--rounded-lg mm-box--border-color-border-default mm-box--border-width-1 box--border-style-solid"
>
<input
autocomplete="off"
class="mm-box mm-text mm-input dropdown-editor__item-placeholder mm-text--body-md mm-box--margin-0 mm-box--padding-0 mm-box--padding-top-3 mm-box--padding-bottom-3 mm-box--color-text-default mm-box--background-color-transparent mm-box--border-style-none"
class="w-full rounded border bg-default text-default outline-none transition-colors border-transparent focus:border-primary-default focus:outline-none placeholder:text-alternative text-s-body-md leading-s-body-md tracking-s-body-md md:text-l-body-md md:leading-l-body-md md:tracking-l-body-md font-regular dropdown-editor__item-placeholder py-3"
placeholder="Add a URL"
readonly=""
tabindex="-1"
type="text"
value=""
/>
<button
aria-label="Default RPC URL"
Expand Down Expand Up @@ -1157,13 +1154,10 @@ exports[`NetworkListMenu should match snapshot when adding a network 1`] = `
class="mm-box dropdown-editor__item-dropdown mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-flex mm-box--justify-content-space-between mm-box--align-items-center mm-box--rounded-lg mm-box--border-color-border-default mm-box--border-width-1 box--border-style-solid"
>
<input
autocomplete="off"
class="mm-box mm-text mm-input dropdown-editor__item-placeholder mm-text--body-md mm-box--margin-0 mm-box--padding-0 mm-box--padding-top-3 mm-box--padding-bottom-3 mm-box--color-text-default mm-box--background-color-transparent mm-box--border-style-none"
class="w-full rounded border bg-default text-default outline-none transition-colors border-transparent focus:border-primary-default focus:outline-none placeholder:text-alternative text-s-body-md leading-s-body-md tracking-s-body-md md:text-l-body-md md:leading-l-body-md md:tracking-l-body-md font-regular dropdown-editor__item-placeholder py-3"
placeholder="Add a URL"
readonly=""
tabindex="-1"
type="text"
value=""
/>
<button
aria-label="Block explorer URL"
Expand Down
Loading