Skip to content

Conversation

@redallen
Copy link
Contributor

@redallen redallen commented Mar 30, 2020

What: Fixes broken application launcher styles on master by choosing to support this API:

component={<Link to="/components/alert/">Alert</Link>}
OR
component="button"

rather than

<DropdownItem component="some-custom-string-that-says-just-to-render-children">
  <Link to="/components/alert/">Alert</Link>
</DropdownItem>
OR
component={<Link to="/components/alert/">Alert</Link>}
OR
component="button"

Changes to InternalDropdownItem (affects Dropdown, OptionsMenu, and ApplicationLauncher):

  • If component is a valid element, clone it rather than children
  • Pass href and id to cloned element

@patternfly-build
Copy link
Collaborator

patternfly-build commented Mar 30, 2020

@redallen redallen requested review from mcoker and tlabaj March 30, 2020 20:07
@tlabaj tlabaj requested review from jschuler and mcoker and removed request for mcoker and tlabaj March 30, 2020 20:09
<Text component="a" href="#" style={exampleStyle}>
Router link
</Text>
<Link to="/" style={exampleStyle}>
Copy link
Contributor

Choose a reason for hiding this comment

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

is style={exampleStyle} necessary for the example?

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@redallen redallen merged commit 28d653e into patternfly:master Mar 31, 2020
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@1.4.47
  • @patternfly/react-core@3.153.2
  • @patternfly/react-docs@4.21.6
  • @patternfly/react-inline-edit-extension@2.17.47
  • demo-app-ts@3.30.2
  • @patternfly/react-table@2.28.28
  • @patternfly/react-topology@2.14.47
  • @patternfly/react-virtualized-extension@1.4.48

Thanks for your contribution! 🎉

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.

5 participants