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: MdTooltip missing controls in Storybook #128

Merged
merged 1 commit into from
Jun 6, 2024
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
2 changes: 1 addition & 1 deletion packages/css/src/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class names and elements in brackets [] are optional-/togglable-/decorator- or s
See [Storybook](https://miljodir.github.io/md-components) for examples and more info.

```html
<button className="md-button [md-button--small, md-button--secondary, md-button--danger, md-button--column]">
<button className="md-button [md-button--small, md-button--secondary, md-button--tertiary, md-button--danger, md-button--column]">
[
<div className="md-button__topIcon">{topIcon}</div>
] [
Expand Down
1 change: 1 addition & 0 deletions packages/css/src/tooltip/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
.md-tooltip__child {
display: flex;
cursor: pointer;
width: fit-content;
}


17 changes: 13 additions & 4 deletions stories/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,23 @@ export default {
},
},
argTypes: {
label: {
description: 'The text to display on hover',
content: {
description: 'The content to display on hover',
table: {
type: {
summary: 'text',
summary: 'ReactNode',
},
},
control: { type: 'text' },
},
ariaLabel: {
description: 'The aria label for the tooltip',
table: {
type: {
summary: 'string',
},
},
control: 'text',
control: { type: 'text' },
},
position: {
description: 'Selected position for the tooltip',
Expand Down
Loading