Skip to content

Commit

Permalink
cursor typo legend and new legend stories
Browse files Browse the repository at this point in the history
  • Loading branch information
severinlandolt committed Dec 19, 2023
1 parent 59bd953 commit 8661bb1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/text-elements/Legend/Legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ScrollButton = ({ icon, onClick, disabled }: ScrollButtonProps) => {
makeLegendClassName("legendSliderButton"),
// common
"w-5 group inline-flex items-center truncate rounded-tremor-small transition",
disabled ? "cursor-not-allowed" : "ursor-pointer",
disabled ? "cursor-not-allowed" : "cursor-pointer",
// light
disabled
? "text-tremor-content-subtle"
Expand Down
17 changes: 17 additions & 0 deletions src/stories/text-elements/Legend.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,20 @@ export const ManyCategoriesWithoutScroll: Story = {
enableLegendSlider: false,
},
};

export const CustomColors: Story = {
...LegendTemplate,
args: {
colors: ["red", "rose", "green", "blue"],
},
};

export const CustomColorsConClick: Story = {
...LegendTemplate,
args: {
colors: ["red", "rose", "green", "#32a852"],
onClickLegendItem: (e) => {
console.log(e);
},
},
};

0 comments on commit 8661bb1

Please sign in to comment.