mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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`,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
<main
|
||||
class={{
|
||||
'inner-scroll': true,
|
||||
'scroll-x': scrollX,
|
||||
@ -330,13 +330,15 @@ export class Content implements ComponentInterface {
|
||||
onScroll={ev => this.onScroll(ev)}
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{transitionShadow ? (
|
||||
<div class="transition-effect">
|
||||
<div class="transition-cover"></div>
|
||||
<div class="transition-shadow"></div>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
<slot name="fixed"></slot>
|
||||
</Host>
|
||||
);
|
||||
|
@ -27,6 +27,7 @@ export class Footer implements ComponentInterface {
|
||||
hostData() {
|
||||
const mode = getIonMode(this);
|
||||
return {
|
||||
role: 'contentinfo',
|
||||
class: {
|
||||
[mode]: true,
|
||||
|
||||
|
@ -27,6 +27,7 @@ export class Header implements ComponentInterface {
|
||||
hostData() {
|
||||
const mode = getIonMode(this);
|
||||
return {
|
||||
role: 'banner',
|
||||
class: {
|
||||
[mode]: true,
|
||||
|
||||
|
Reference in New Issue
Block a user