Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hover and focus color ring #1120

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/components/PbNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
id="toggle-navbar-top"
data-collapse-toggle="navbar-top"
type="button"
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200"
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 "
aria-controls="navbar-default"
aria-expanded="false"
>
Expand Down Expand Up @@ -93,20 +93,20 @@
<li role="menuitem">
<a
href="https://pressbooks.com/enterprise/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@keydown.shift.tab.prevent="focusParent('products')"
>Enterprise</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/self-publisher/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
>Self-Publisher</a>
</li>
<li role="menuitem">
<a
href="/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@blur="hideSubmenu('products')"
>Pressbooks Directory</a>
</li>
Expand Down Expand Up @@ -155,14 +155,14 @@
<li role="menuitem">
<a
href="https://pressbooks.com/educational-institutions-plans-and-pricing/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@keydown.shift.tab.prevent="focusParent('plans')"
>Enterprise Networks</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/self-publisher-plans-and-pricing/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@blur="hideSubmenu('plans')"
>Self-Publisher Plans</a>
</li>
Expand Down Expand Up @@ -211,38 +211,38 @@
<li role="menuitem">
<a
href="https://pressbooks.com/collections-hub/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@keydown.shift.tab.prevent="focusParent('resources')"
>Collections Hub</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/category/success-stories/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
>Success Stories</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/pressbooks-blog/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
>Blog</a>
</li>
<li role="menuitem">
<a
href="/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
>Pressbooks Directory</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/support/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
>Support Guides</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/webinars/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@blur="hideSubmenu('resources')"
>Events & Webinars</a>
</li>
Expand Down Expand Up @@ -291,20 +291,20 @@
<li role="menuitem">
<a
href="https://pressbooks.com/about/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@keydown.shift.tab.prevent="focusParent('about')"
>About Pressbooks</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/pressbooks-team/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
>Our Team</a>
</li>
<li role="menuitem">
<a
href="https://pressbooks.com/category/inside-pressbooks/"
class="text-gray-500 font-semibold text-[18px]"
class="text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"
@blur="hideSubmenu('about')"
>Inside Pressbooks</a>
</li>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ ul#footer-menu > li {

.book-description a {
@apply text-pb-red underline;
}

*:focus {
@apply outline-pb-red;
}
Loading