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

CSS style: Don't hide focus indicators #2475

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jookia
Copy link
Contributor

@Jookia Jookia commented Jul 4, 2020

Hiding focus indicators is unhelpful for people navigating by keyboard.
Show them instead.

Before submitting a pull-request to GitBucket I have first:

  • read the contribution guidelines
  • rebased my branch over master
  • verified that project is compiling
  • verified that tests are passing
  • squashed my commits as appropriate (keep several commits if it is relevant to understand the PR)
  • marked as closed using commit message all issue ID that this PR should correct

Hiding focus indicators is unhelpful for people navigating by keyboard.
Show them instead.
Comment on lines -175 to -181
a:hover,
a:active,
a:focus {
outline: none;
text-decoration: none;
color: #23527c;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What for?

BTW, do not modify this css file directly as it is from third party library. Anything you modified would be lost when AdminLTE upgraded.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What for?

Sorry, you clarified here

Hiding focus indicators is unhelpful for people navigating by keyboard.
Show them instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, why did you remove color: #23527c;? Screenshots before and after would help.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How else do I modify this CSS? It seems that the way AdminLTE indicates focus is by slightly darkening links. I can't even see the difference. So this commit replaces it with classic browser focus stuff. You can compare it by tabbing through the GitBucket demo and https://git.xogium.me/

@Jookia
Copy link
Contributor Author

Jookia commented Jul 4, 2020 via email

@SIkebe
Copy link
Member

SIkebe commented Jul 5, 2020

Ah I see, this color change is not from AdminLTE but Bootstrap. So your deletion does not have any effect.

color

This #23527c is applied.

image

@Jookia
Copy link
Contributor Author

Jookia commented Jul 5, 2020

Ah, that's good. My intention is purely to make it so the focus box shows around things when using keyboard navigation, so you can see where you're at in the page.

@SIkebe
Copy link
Member

SIkebe commented Jul 5, 2020

If your link has underline in it, this PR makes it harder to read correctly. Could you also tweak padding?

underline

@Jookia
Copy link
Contributor Author

Jookia commented Jul 5, 2020

Sure, how?

Edit: For what it's worth I can't get your padding behavior on my browser.

@Jookia
Copy link
Contributor Author

Jookia commented Jul 5, 2020

Ok I managed to reproduce it on my machine. I can't change that without changing the font used in Gitbucket. Maybe I should add the underline back?

@SIkebe
Copy link
Member

SIkebe commented Jul 5, 2020

Edit: For what it's worth I can't get your padding behavior on my browser.

That's strange... which browser are you using? As I said before screenshots would help.

@SIkebe
Copy link
Member

SIkebe commented Jul 5, 2020

I can't change that without changing the font used in Gitbucket.

How did you verify that? You can override any third party css behavior if you can define your style in gitbucket.css.
Note: Do not use below style definition as it is. It affects all <a> tag.

image

@Jookia
Copy link
Contributor Author

Jookia commented Jul 5, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants