Skip to content

Commit

Permalink
chore: rename and add cursor pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
filipemarins committed Dec 20, 2022
1 parent 109f050 commit 3ede15e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Option/Option.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const WithIcon: ComponentStory<typeof Option> = () => (
</Box>
);

export const WithDisabled: ComponentStory<typeof Option> = () => (
export const Disabled: ComponentStory<typeof Option> = () => (
<Box position='relative' maxWidth={330}>
<Option onClick={action('click')}>
<OptionContent>Enabled</OptionContent>
Expand Down
2 changes: 2 additions & 0 deletions packages/fuselage/src/components/Option/Option.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ $variants: (
}

&--disabled {
cursor: pointer;

color: colors.font(disabled);
}

Expand Down
8 changes: 4 additions & 4 deletions packages/fuselage/src/helpers/prevent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SyntheticEvent } from 'react';

export const prevent = (e: SyntheticEvent) => {
e.preventDefault();
e.stopPropagation();
e.nativeEvent.stopImmediatePropagation();
export const prevent = (event: SyntheticEvent) => {
event.preventDefault();
event.stopPropagation();
event.nativeEvent.stopImmediatePropagation();
};

0 comments on commit 3ede15e

Please sign in to comment.