Skip to content

Commit

Permalink
[sparkle] - chore(Dropdown): hover style (#9689)
Browse files Browse the repository at this point in the history
* [sparkle] - fix: update Dropdown focus and hover styles

 - Add hover state background color to the default variant for better user feedback
 - Ensure consistency in focus state background color for the warning variant

* [sparkle] - feature: bump version to 0.2.351

 - Increment package version for a new release
 - Ensure package-lock.json reflects the new version for consistency
  • Loading branch information
JulesBelveze authored and overmode committed Jan 3, 2025
1 parent 98732dd commit d303f3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sparkle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dust-tt/sparkle",
"version": "0.2.350",
"version": "0.2.351",
"scripts": {
"build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
"tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",
Expand Down
4 changes: 2 additions & 2 deletions sparkle/src/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const menuStyleClasses = {
{
variants: {
variant: {
default: "focus:s-text-primary-950 focus:s-bg-primary-150",
default: "focus:s-text-primary-950 hover:s-bg-primary-150 focus:s-bg-primary-150",
warning:
"s-text-warning-500 hover:s-bg-warning-50 active:s-bg-warning-100",
"s-text-warning-500 hover:s-bg-warning-50 focus:s-bg-warning-50 active:s-bg-warning-100",
},
},
defaultVariants: {
Expand Down

0 comments on commit d303f3f

Please sign in to comment.