|
1 | 1 | # @patternfly/pfe-clipboard |
2 | 2 |
|
| 3 | +## 2.0.0-next.1 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- ce7ed4e7: Update pfe-clipboard to function with mouse, keyboard, and screen reader and meet WCAG 2.1 A - AA Guidelines ✨♿ |
| 8 | + |
| 9 | + BREAKING CHANGE: |
| 10 | + `role="button"` and `tabindex=0` attributes must _no longer_ be applied to `<pfe-clipboard>`, make sure all instances |
| 11 | + on your page are updated |
| 12 | + |
| 13 | + ```diff |
| 14 | + - <pfe-clipboard role="button" tabindex="0"></pfe-clipboard> |
| 15 | + + <pfe-clipboard></pfe-clipboard> |
| 16 | + ``` |
| 17 | + |
| 18 | + `pfe-clipboard.spec.ts` |
| 19 | + |
| 20 | + - Updated tests based on a11y changes |
| 21 | + |
| 22 | + `README.md` |
| 23 | + |
| 24 | + - Updated readme based on a11y updates |
| 25 | + |
| 26 | + `pfe-clipboard.ts` |
| 27 | + |
| 28 | + - Added new state property for aria-disabled to added aria features |
| 29 | + - Added comments for changes |
| 30 | + - Updated the HTML in render() to add aria features |
| 31 | + - Cleaned up some comment typos |
| 32 | + |
| 33 | + `pfe-clipboard.scss` |
| 34 | + |
| 35 | + - Added sr-only class to utilize with pfe-clipboard to improve the success message output for screen readers |
| 36 | + - Adjusted the padding and changes some ids to be classes to go with new HTML structure |
| 37 | + |
| 38 | + `pfe-clipboard.html` |
| 39 | + |
| 40 | + - Removed role button and tabindex from pfe-clipboard tags because that is being set within the shadowDom now |
| 41 | + pfe-clipboard.js |
| 42 | + - Removed role button and tabindex from pfe-clipboard tags because that is being set within the shadowDom now |
| 43 | + |
| 44 | + See [docs](https://patternflyelements.org/components/clipboard/) for more info |
| 45 | + |
3 | 46 | ## 2.0.0-next.0 |
| 47 | + |
4 | 48 | ### Major Changes |
5 | 49 |
|
6 | 50 | - cd3917e0: ## 🔥 Migrate to Lit |
7 | | - |
| 51 | + |
8 | 52 | This release migrates `<pfe-clipboard>` to LitElement. |
9 | | - |
| 53 | + |
10 | 54 | ### Breaking Changes |
| 55 | + |
11 | 56 | - Initial render is now [asynchronous](https://lit.dev/docs/components/lifecycle/#reactive-update-cycle). |
12 | 57 | If your code assumes that shadow DOM is ready once the element is constructed, update it to `await element.updateComplete` |
13 | 58 | - Deprecates `text` slot (use `label`) and `text--success` (use `success`) slots |
14 | 59 | - Deprecates `pfe-clipboard:connected` event (use `await el.updateComplete`) |
15 | 60 | - Deprecates `pfe-clipboard:copied` event (use `copied`) |
16 | | - |
17 | | - |
| 61 | + |
18 | 62 | See [docs](https://patternflyelements.org/components/clipboard/) for more info |
19 | 63 |
|
20 | 64 | ### Patch Changes |
|
0 commit comments