Skip to content

Commit 51c0179

Browse files
committed
Made header sticky and increased accessibility
1 parent 3dd665c commit 51c0179

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/components/blog/SecurityHelpSection.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<h1>Secrity help and learning</h1>
44
<div class="security-dropdown-container">
55
<h2>Security Guides</h2>
6-
<pf-select id="security-dropdown" placeholder="Select a product">
6+
<pf-select
7+
id="security-dropdown"
8+
placeholder="Select a product"
9+
accessible-label="Red Hat Enterprise Linux"
10+
>
711
<pf-option-group key="group1" label="Red Hat Enterprise Linux">
812
<pf-option><a>Hardening Guide</a></pf-option>
913
<pf-option><a>SELinux Guide</a></pf-option>

src/components/header/HamburgerMenuModal.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@
4747
pf-button {
4848
--pf-c-button--m-primary--BackgroundColor: transparent;
4949
}
50+
51+
@media screen and (max-width: 767px) {
52+
pf-modal::part(dialog) {
53+
margin-top: 70px;
54+
}
55+
}
5056
</style>

src/components/header/SecurityLandingHeader.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
height: 120px;
9191
padding: 0 32px;
9292
align-items: center;
93+
position: sticky;
94+
top: 0;
95+
z-index: 2;
9396
}
9497
9598
.header-container hr {

0 commit comments

Comments
 (0)