mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(accordion): items inside of the content now correct display borders (#24618)
resolves #24613
This commit is contained in:
@ -9,3 +9,12 @@ test('accordion: axe', async () => {
|
|||||||
const results = await new AxePuppeteer(page).analyze();
|
const results = await new AxePuppeteer(page).analyze();
|
||||||
expect(results.violations.length).toEqual(0);
|
expect(results.violations.length).toEqual(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('accordion: standalone', async () => {
|
||||||
|
const page = await newE2EPage({
|
||||||
|
url: '/src/components/accordion/test/standalone?ionic:_testing=true'
|
||||||
|
});
|
||||||
|
|
||||||
|
const compare = await page.compareScreenshot();
|
||||||
|
expect(compare).toMatchScreenshot();
|
||||||
|
});
|
||||||
|
@ -85,6 +85,21 @@
|
|||||||
</ion-accordion>
|
</ion-accordion>
|
||||||
</ion-accordion-group>
|
</ion-accordion-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="grid-item">
|
||||||
|
<h2>Item In Content</h2>
|
||||||
|
|
||||||
|
<ion-accordion-group value="first">
|
||||||
|
<ion-accordion value="first">
|
||||||
|
<ion-item slot="header">
|
||||||
|
Accordion
|
||||||
|
</ion-item>
|
||||||
|
<div slot="content">
|
||||||
|
<ion-item lines="full">Some Item</ion-item>
|
||||||
|
</div>
|
||||||
|
</ion-accordion>
|
||||||
|
</ion-accordion-group>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
@ -282,7 +282,7 @@ ion-accordion-group.accordion-group-expand-inset > ion-accordion:last-of-type {
|
|||||||
border-bottom-left-radius: 8px;
|
border-bottom-left-radius: 8px;
|
||||||
border-bottom-right-radius: 8px;
|
border-bottom-right-radius: 8px;
|
||||||
}
|
}
|
||||||
ion-accordion-group > ion-accordion:last-of-type ion-item {
|
ion-accordion-group > ion-accordion:last-of-type ion-item[slot="header"] {
|
||||||
--border-width: 0px;
|
--border-width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user