-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(clipboard-copy)!: remove BaseClipboardCopy (#2635)
* fix(clipboard-copy)!: remove BaseClipboardCopy Closes #2611 * fix(clipboard-copy): use pfv4 styles * fix(clipboard-copy)!: rename ClipboardCopyCopiedEvent to PfClipboardCopyCopiedEvent
- Loading branch information
1 parent
cf4723b
commit 9a6e651
Showing
7 changed files
with
289 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
"@patternfly/elements": major | ||
--- | ||
`<pf-clipboard-copy>`: Removed `BaseClipboardCopy` class. | ||
Reimplement (recommended) or extend `PfClipboardCopy`. | ||
Renames `AvatarLoadEvent` to `PfAvatarLoadEvent` and moves it to `pf-avatar.js`. | ||
|
||
**Before**: | ||
|
||
```js | ||
import { | ||
ClipboardCopyCopiedEvent | ||
} from '@patternfly/elements/pf-clipboard-copy/BaseClipboardCopy.js'; | ||
|
||
addEventListener('copy', function(event) { | ||
if (event instanceof ClipboardCopyCopiedEvent) { | ||
// ... | ||
} | ||
}); | ||
``` | ||
|
||
**After**: | ||
|
||
```js | ||
import { | ||
PfClipboardCopyCopiedEvent | ||
} from '@patternfly/elements/pf-clipboard-copy/pf-clipboard-copy.js'; | ||
|
||
addEventListener('copy', function(event) { | ||
if (event instanceof PfClipboardCopyCopiedEvent) { | ||
// ... | ||
} | ||
}); | ||
``` | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.