patternfly-elements icon indicating copy to clipboard operation
patternfly-elements copied to clipboard

fix(label)!: remove BaseLabel

Open bennypowers opened this issue 2 years ago • 4 comments

Closes #2620

What I did

  1. remove baselabel

Testing Instructions

  1. compare dp to prod demos

Notes to Reviewers

  1. see https://github.com/RedHat-UX/red-hat-design-system/pull/1279
  2. this pr causes label to remove itself on close if the event isn't cancelled. is that desired?
  3. don't merge until non-breaking changes are released in 2.5.0

bennypowers avatar Oct 19 '23 08:10 bennypowers

🦋 Changeset detected

Latest commit: c7d0ee8fc0b8feb4bbdcb6de36b074090670aded

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@patternfly/elements Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Oct 19 '23 08:10 changeset-bot[bot]

Deploy Preview for patternfly-elements ready!

Name Link
Latest commit f24d30dc05f14b1eebd88a2069a3cecc3f8ea398
Deploy Preview https://deploy-preview-2632--patternfly-elements.netlify.app/

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Oct 19 '23 08:10 netlify[bot]

2. this pr causes label to remove itself on close if the event isn't cancelled. is that desired?

I take it you are making reference to whether or not the close button should do anything internally?

Patternfly does not provide remove functionality directly and needs wired up, removal of the element .remove() is most likely preferred as it is already triggering the LabelCloseEvent that implementation can use to do whatever it is they desire on the click.

zeroedin avatar Nov 14 '23 17:11 zeroedin

  1. this pr causes label to remove itself on close if the event isn't cancelled. is that desired?

I take it you are making reference to whether or not the close button should do anything internally?

Patternfly does not provide remove functionality directly and needs wired up, removal of the element .remove() is most likely preferred as it is already triggering the LabelCloseEvent that implementation can use to do whatever it is they desire on the click.

And I now see the change in the changeset that instead provides an example of how to cancel the event, reverted commit to change that behavior. My bad.

zeroedin avatar Nov 14 '23 17:11 zeroedin