Loading...
.site-header {
position: sticky;
top: 0;
height: 64px;
}html {
scroll-padding-top: 72px;
}
.site-header {
position: sticky;
top: 0;
height: 64px;
}scroll-padding-top makes the browser scroll focused elements below the sticky header instead of behind it.
scroll-padding to at least the header height.Minimum, at level AA, allows the focused element to be partly covered. Enhanced, at level AAA, requires it to be fully visible.
No, as long as focus stays inside the modal, because the content behind it cannot receive focus.