mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
(fix): define top-level ARIA landmark regions to improve accessibility (#18672)
references #18671
This commit is contained in:
@ -319,7 +319,7 @@ export class Content implements ComponentInterface {
|
|||||||
'--offset-bottom': `${this.cBottom}px`,
|
'--offset-bottom': `${this.cBottom}px`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<main
|
||||||
class={{
|
class={{
|
||||||
'inner-scroll': true,
|
'inner-scroll': true,
|
||||||
'scroll-x': scrollX,
|
'scroll-x': scrollX,
|
||||||
@ -330,13 +330,15 @@ export class Content implements ComponentInterface {
|
|||||||
onScroll={ev => this.onScroll(ev)}
|
onScroll={ev => this.onScroll(ev)}
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</main>
|
||||||
|
|
||||||
{transitionShadow ? (
|
{transitionShadow ? (
|
||||||
<div class="transition-effect">
|
<div class="transition-effect">
|
||||||
<div class="transition-cover"></div>
|
<div class="transition-cover"></div>
|
||||||
<div class="transition-shadow"></div>
|
<div class="transition-shadow"></div>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
<slot name="fixed"></slot>
|
<slot name="fixed"></slot>
|
||||||
</Host>
|
</Host>
|
||||||
);
|
);
|
||||||
|
@ -27,6 +27,7 @@ export class Footer implements ComponentInterface {
|
|||||||
hostData() {
|
hostData() {
|
||||||
const mode = getIonMode(this);
|
const mode = getIonMode(this);
|
||||||
return {
|
return {
|
||||||
|
role: 'contentinfo',
|
||||||
class: {
|
class: {
|
||||||
[mode]: true,
|
[mode]: true,
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ export class Header implements ComponentInterface {
|
|||||||
hostData() {
|
hostData() {
|
||||||
const mode = getIonMode(this);
|
const mode = getIonMode(this);
|
||||||
return {
|
return {
|
||||||
|
role: 'banner',
|
||||||
class: {
|
class: {
|
||||||
[mode]: true,
|
[mode]: true,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user