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

feat(Dropdown deprecated): added rule to replace with MenuToggle #702

Merged

Conversation

thatblindgeye
Copy link
Collaborator

Closes #683

Also includes some cleanup/helpers added in.

@thatblindgeye thatblindgeye force-pushed the iss683_replaceKebabToggle branch from 89f7528 to 0f005ae Compare July 18, 2024 19:47
Comment on lines +154 to +155
code: `import { KebabToggle } from "@patternfly/react-core/dist/js/deprecated/components/Dropdown/index.js";`,
output: `import { MenuToggle } from "@patternfly/react-core";\nimport EllipsisVIcon from "@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon";`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 this may or may not really be an issue, but I think we should import the icon from /js if the consumer is importing stuff from /js already.

We may also need to reevaluate if importing from /esm by default is a safe assumption.... but I wouldn't block over that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made #705 as a followup

],
},
{
code: `import { KebabToggle } from "@patternfly/react-core/dist/dynamic/deprecated/components/Dropdown/index.js";`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the same for /dynamic

@wise-king-sullyman wise-king-sullyman merged commit 4b1201d into patternfly:main Jul 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KebabToggle - Address KebabToggle removal
2 participants