diff --git a/package.json b/package.json index f72c8b1c5..7b64dcfac 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@cosmjs/tendermint-rpc": "^0.32.1", "@dydxprotocol/v4-abacus": "^1.7.87", "@dydxprotocol/v4-client-js": "^1.1.23", - "@dydxprotocol/v4-localization": "^1.1.127", + "@dydxprotocol/v4-localization": "^1.1.128", "@ethersproject/providers": "^5.7.2", "@hugocxl/react-to-image": "^0.0.9", "@js-joda/core": "^5.5.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 33f6cbca6..129555f0f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ dependencies: specifier: ^1.1.23 version: 1.1.23 '@dydxprotocol/v4-localization': - specifier: ^1.1.127 - version: 1.1.127 + specifier: ^1.1.128 + version: 1.1.128 '@ethersproject/providers': specifier: ^5.7.2 version: 5.7.2 @@ -1429,8 +1429,8 @@ packages: - utf-8-validate dev: false - /@dydxprotocol/v4-localization@1.1.127: - resolution: {integrity: sha512-6aN+pRLrOqbhZFHGcmfhBxC/S8mui/0zl2jt61Z8lP4BF8P9jLr7W0EF9UTCVydHJVUbjxJui8c1ApWtOBDZtQ==} + /@dydxprotocol/v4-localization@1.1.128: + resolution: {integrity: sha512-jVGDTQUXWkx325Pd0Kca2z7vLZy61Q0gG7oQuNdJ6TB15zMRU74XMQvDZgJvCeM2WmiIqdyR5HnRJwL/gdnzQA==} dev: false /@dydxprotocol/v4-proto@5.0.0-dev.0: diff --git a/src/components/Details.tsx b/src/components/Details.tsx index 52b3fcf71..32629fecd 100644 --- a/src/components/Details.tsx +++ b/src/components/Details.tsx @@ -153,8 +153,6 @@ const detailsLayoutVariants = { const itemLayoutVariants = { column: css` - isolation: isolate; - ${layoutMixins.scrollArea} ${layoutMixins.stickyArea0} diff --git a/src/components/DropdownIcon.tsx b/src/components/DropdownIcon.tsx new file mode 100644 index 000000000..4665e603d --- /dev/null +++ b/src/components/DropdownIcon.tsx @@ -0,0 +1,36 @@ +import styled, { css } from 'styled-components'; + +import { Icon, IconName } from '@/components/Icon'; + +type ElementProps = { + iconName?: IconName; + isOpen?: boolean; +}; + +type StyleProps = { + className?: string; +}; + +export const DropdownIcon = ({ + iconName = IconName.Triangle, + isOpen, + className, +}: ElementProps & StyleProps) => { + return ( + <$DropdownIcon aria-hidden="true" isOpen={isOpen} className={className}> +