-
Notifications
You must be signed in to change notification settings - Fork 2
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
added custom focus states #784
Conversation
[diff-counting] Significant lines: 82. |
@@ -59,7 +59,7 @@ const Navbar: React.FC = () => { | |||
<div className="hidden !justify-self-end w-fit lg:inline-flex flex-row"> | |||
{navbarItems.map((item) => ( | |||
<a | |||
className={`hover:underline cursor-pointer text-white p-4 underline-offset-8 decoration-2 decoration-white ${ | |||
className={`hover:underline cursor-pointer text-white p-4 underline-offset-8 decoration-2 decoration-white h-[48px] flex items-center ${ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make links same height as logo and vertically center the labels within the link wrapper
@@ -240,3 +265,32 @@ summary::after { | |||
details[open] > summary::after { | |||
rotate: 180deg; | |||
} | |||
|
|||
|
|||
.custom-focus-state:focus-visible { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the custom-focus-state
class basically removes the default focus state outline on the element and instead places it on an absolutely positioned ::after
pseudo-element so that it looks visually better
@@ -314,7 +314,7 @@ const MemberGroup: React.FC<MemberGroupProps> = ({ | |||
<> | |||
<button | |||
onClick={() => onMemberCardClick(member)} | |||
className="memberCard" | |||
className="memberCard custom-focus-state" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see what custom-focus-state
does here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes you made look good and I tabbed my way through every page of the website! LMK what u think about the other two cases though
ya it should have secondary styling with red border once it gets the new styling, the proper focus state (red outline) should appear |
oops ok i'll fix that |
fixes this