Skip to content

Commit 557db88

Browse files
authored
Merge 4beb73c into 8190f8a
2 parents 8190f8a + 4beb73c commit 557db88

15 files changed

+718
-715
lines changed

.changeset/heavy-peas-appear.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
"@patternfly/pfe-tools": minor
3+
---
4+
Added `querySnapshot` accessibility testing helper
5+
6+
```ts
7+
8+
describe('then clicking the toggle', function() {
9+
beforeEach(async function() {
10+
await clickElementAtCenter(toggle);
11+
});
12+
it('expands the disclosure panel', async function() {
13+
const snapshot = await a11ySnapshot();
14+
const expanded = querySnapshot(snapshot, { expanded: true });
15+
expect(expanded).to.be.ok;
16+
});
17+
});
18+
```

.changeset/hip-coins-prove.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
"@patternfly/elements": major
3+
---
4+
`<pf-accordion>`: Removed `BaseAccordion*` classes, as well as static `isPanel`, `isHeader`, and `isAccordion` methods. Removed the optional `parentAccordion` parameter to `PfAccordion#expand(index)`. Renamed accordion event classes by adding the `Pf` prefix:
5+
6+
**Before**:
7+
8+
```js
9+
import {
10+
AccordionHeaderChangeEvent
11+
} from '@patternfly/elements/pf-accordion/pf-accordion.js';
12+
13+
addEventListener('change', function(event) {
14+
if (event instanceof AccordionHeaderChangeEvent) {
15+
// ...
16+
}
17+
});
18+
```
19+
20+
**After**:
21+
22+
```js
23+
import {
24+
PfAccordionHeaderChangeEvent
25+
} from '@patternfly/elements/pf-accordion/pf-accordion.js';
26+
27+
addEventListener('change', function(event) {
28+
if (event instanceof PfAccordionHeaderChangeEvent) {
29+
// ...
30+
}
31+
});
32+
```

elements/pf-accordion/BaseAccordion.ts

Lines changed: 0 additions & 327 deletions
This file was deleted.

0 commit comments

Comments
 (0)