Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components): style open state #81

Merged
merged 1 commit into from
Dec 20, 2023
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 @@ -7,7 +7,11 @@ export interface ListboxButtonTextValueProps {

export const ListboxButtonTextValue = ({ placeholder, value }: ListboxButtonTextValueProps) => {
if (!value) {
return <div className="paragraph-100 text-neutral-600">{placeholder}</div>;
return (
<div className="paragraph-100 text-neutral-600 group-hover:text-neutral-700">
{placeholder}
</div>
);
}
return <div className="paragraph-100">{value}</div>;
};
2 changes: 1 addition & 1 deletion src/components/form-field/listbox/listbox-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface ListboxButtonProps {

const ListboxButton = ({ children }: ListboxButtonProps) => {
return (
<Listbox.Button className="flex h-8 w-full cursor-pointer items-center rounded border border-neutral-400 py-2 pl-3 pr-8">
<Listbox.Button className="group flex h-8 w-full cursor-pointer items-center rounded border border-neutral-400 py-2 pl-3 pr-8 outline-none hover:border-neutral-600 focus:border-primary-400 focus:ring-2 focus:ring-primary-200 ui-open:border-primary-400 ui-open:ring-2 ui-open:ring-primary-200">
{children}
<div className="absolute inset-y-0 right-0 flex items-center px-1.5">
<div className="flex h-5 w-5 items-center justify-center rounded rounded-r-md bg-neutral-100 focus:outline-none">
Expand Down
Loading