Compare commits

...

8 Commits

Author SHA1 Message Date
José Rio
dafb0b9005 Update tabs.tsx 2025-02-06 17:31:46 +00:00
José Rio
6b164c8f44 fix(tab): rollback a11y implementation 2025-02-06 17:28:12 +00:00
José Rio
5546e95288 fix(content): enable for a11y focus 2025-02-06 17:27:24 +00:00
José Rio
52d6e09b27 fix(tab): A11Y - tabindex with string values. 2025-02-05 16:13:05 +00:00
José Rio
a6e734cf1a Merge remote-tracking branch 'origin/feature-8.5' into ROU-11564 2025-02-05 15:58:01 +00:00
José Rio
ed77d81eaa chore(): update snapshots 2025-02-05 14:59:44 +00:00
José Rio
e4957fa4d2 fix(tab): A11Y - manage tabindex and set focus when active. 2025-02-05 14:59:08 +00:00
José Rio
d9f8c1352f fix(tabbutton): A11Y - enable tabindex. 2025-02-05 14:58:29 +00:00
6 changed files with 6 additions and 2 deletions

View File

@@ -455,6 +455,7 @@ export class Content implements ComponentInterface {
overscroll: forceOverscroll,
[`content-${rtl}`]: true,
})}
tabIndex={'0'}
style={{
'--offset-top': `${this.cTop}px`,
'--offset-bottom': `${this.cBottom}px`,

View File

@@ -172,7 +172,7 @@ export class TabButton implements ComponentInterface, AnchorInterface {
role="tab"
aria-selected={selected ? 'true' : null}
aria-disabled={disabled ? 'true' : null}
tabindex={disabled ? '-1' : undefined}
tabindex={disabled ? '-1' : '0'}
{...inheritedAttributes}
>
<span class="button-inner">

View File

@@ -55,7 +55,7 @@ export class Tab implements ComponentInterface {
@Watch('active')
changeActive(isActive: boolean) {
if (isActive) {
if (isActive) {
this.prepareLazyLoaded();
}
}

View File

@@ -182,6 +182,9 @@ export class Tabs implements NavOutlet {
}
private onTabClicked = (ev: CustomEvent<TabButtonClickEventDetail>) => {
console.log("onTabClicked");
const { href, tab } = ev.detail;
if (this.useRouter && href !== undefined) {
const router = document.querySelector('ion-router');

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB