diff --git a/web/lib/opal/src/components/buttons/chevron.css b/web/lib/opal/src/components/buttons/chevron.css index ef4498d164..fef5259177 100644 --- a/web/lib/opal/src/components/buttons/chevron.css +++ b/web/lib/opal/src/components/buttons/chevron.css @@ -1,8 +1,8 @@ -.opal-button-chevron { +.opal-chevron { transition: rotate 200ms ease; } -.interactive[data-interaction="hover"] .opal-button-chevron, -.interactive[data-interaction="active"] .opal-button-chevron { +.interactive[data-interaction="hover"] .opal-chevron, +.interactive[data-interaction="active"] .opal-chevron { rotate: -180deg; } diff --git a/web/lib/opal/src/components/buttons/chevron.tsx b/web/lib/opal/src/components/buttons/chevron.tsx index 0b00669ba6..d52821a052 100644 --- a/web/lib/opal/src/components/buttons/chevron.tsx +++ b/web/lib/opal/src/components/buttons/chevron.tsx @@ -12,10 +12,7 @@ import { cn } from "@opal/utils"; */ function ChevronIcon({ className, ...props }: IconProps) { return ( - + ); } diff --git a/web/lib/opal/src/components/buttons/link-button/components.tsx b/web/lib/opal/src/components/buttons/link-button/components.tsx index df56f71359..8706bf4df9 100644 --- a/web/lib/opal/src/components/buttons/link-button/components.tsx +++ b/web/lib/opal/src/components/buttons/link-button/components.tsx @@ -66,9 +66,7 @@ function LinkButton({ }: LinkButtonProps) { const inner = ( <> - - {children} - + {children} {/* The glyph is aria-hidden, so new-window behavior needs a spoken cue. */} {target === "_blank" && ( (opens in new tab) diff --git a/web/lib/opal/src/components/buttons/link-button/styles.css b/web/lib/opal/src/components/buttons/link-button/styles.css index cd67c0d3be..93e6e75a47 100644 --- a/web/lib/opal/src/components/buttons/link-button/styles.css +++ b/web/lib/opal/src/components/buttons/link-button/styles.css @@ -28,6 +28,6 @@ /* `font-secondary-body` is a plain CSS class defined in globals.css (not a Tailwind utility), so `@apply` can't consume it — other Opal components attach it via `className` on the JSX element, and we do the same here. */ -.opal-link-button-label { +.opal-link-label { @apply underline; } diff --git a/web/lib/opal/src/components/buttons/select-button/README.md b/web/lib/opal/src/components/buttons/select-button/README.md index ce6cc644c3..430def37eb 100644 --- a/web/lib/opal/src/components/buttons/select-button/README.md +++ b/web/lib/opal/src/components/buttons/select-button/README.md @@ -28,10 +28,10 @@ Use SelectButton for general-purpose stateful toggles. Use `OpenButton` for popo ``` Interactive.Stateful <- variant, state, interaction, disabled, onClick └─ Interactive.Container <- height, rounding, padding (from `size`) - └─ div.opal-select-button.interactive-foreground + └─ div.opal-select-content.interactive-foreground ├─ Icon? (interactive-foreground-icon) ├─ [Foldable]? (wraps label + rightIcon when foldable) - │ ├─ .opal-select-button-label + │ ├─ .opal-select-content-label │ └─ RightIcon? └─ ? / RightIcon? (non-foldable) ``` diff --git a/web/lib/opal/src/components/buttons/select-button/components.tsx b/web/lib/opal/src/components/buttons/select-button/components.tsx index c31cd2d5ca..8ab2277e6a 100644 --- a/web/lib/opal/src/components/buttons/select-button/components.tsx +++ b/web/lib/opal/src/components/buttons/select-button/components.tsx @@ -102,7 +102,7 @@ function SelectButton({ >
diff --git a/web/lib/opal/src/components/buttons/select-button/styles.css b/web/lib/opal/src/components/buttons/select-button/styles.css index 50ae7e9912..45b5be4341 100644 --- a/web/lib/opal/src/components/buttons/select-button/styles.css +++ b/web/lib/opal/src/components/buttons/select-button/styles.css @@ -2,6 +2,6 @@ /* SelectButton — layout only; colors handled by Interactive.Stateful */ -.opal-select-button { +.opal-select-content { @apply flex flex-row items-center gap-1; } diff --git a/web/lib/opal/src/components/buttons/text-button/README.md b/web/lib/opal/src/components/buttons/text-button/README.md index afd70adc9b..e9b65c1232 100644 --- a/web/lib/opal/src/components/buttons/text-button/README.md +++ b/web/lib/opal/src/components/buttons/text-button/README.md @@ -15,7 +15,7 @@ slots). ``` Interactive.Stateless <- always variant="default" / prominence="tertiary"; disabled, href, onClick - └─ /