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

307 add visual focus to all clickable elements #344

Merged
merged 5 commits into from
Oct 6, 2023

Conversation

pmarsh-scottlogic
Copy link
Contributor

@pmarsh-scottlogic pmarsh-scottlogic commented Oct 4, 2023

closes #307

I've poked around the website and most of it is quite keyboard friendly. I've gone and fixed the few parts which were not visibly focusable.

changes

  • makes the focus on collapsible control sections more visible (white outline)
  • makes the focus on the defence mechanism switches visible (white outline)

focussed collapsible control section

before

image

after

image

focussed defence mechanism switch

before

image

after

image

Copy link
Contributor

@gsproston-scottlogic gsproston-scottlogic left a comment

Choose a reason for hiding this comment

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

Highlighting on the defence sliders is very nice and a long time coming, nice work! I am seeing a couple of visual issues though:

The line between the section header and content should be straight, but it's rounded at the sides now:
image

Not super critical but I think it'd be nice if we can have the same styling for the defences and the section headers. At the mo the highlight on the defence only really covers the words but it'd be nice if it covers the surrounding box as well:
image

@gsproston-scottlogic gsproston-scottlogic linked an issue Oct 4, 2023 that may be closed by this pull request
@chriswilty
Copy link
Member

Highlighting on the defence sliders is very nice and a long time coming, nice work! I am seeing a couple of visual issues though:

The line between the section header and content should be straight, but it's rounded at the sides now: image

Not super critical but I think it'd be nice if we can have the same styling for the defences and the section headers. At the mo the highlight on the defence only really covers the words but it'd be nice if it covers the surrounding box as well: image

We have bigger problems than just that:

image

Also will fix in my changes.

@chriswilty
Copy link
Member

@gsproston-scottlogic Commit pushed for tidying up styles, can we get your eyes on this for a final review? Feel free to ask questions on anything you're unsure about.

@chriswilty chriswilty self-requested a review October 4, 2023 15:08
@gsproston-scottlogic
Copy link
Contributor

@gsproston-scottlogic Commit pushed for tidying up styles, can we get your eyes on this for a final review? Feel free to ask questions on anything you're unsure about.

Looks good! just a couple of visual quirks, though neither are particularly critical:

The config sections don't have rounded corners anymore:
image

The highlight for the config heading and defence mechanism looks different, I'd expect these to look the same:
image
image

@chriswilty
Copy link
Member

chriswilty commented Oct 5, 2023

@gsproston-scottlogic

The line between the section header and content should be straight, but it's rounded at the sides now

Ah, I was a bit confused by this comment, and took the rounded corners off everything!

Does this look weird though? Can also have square corners on the focus indicator if you prefer.
image

The highlight for the config heading and defence mechanism looks different, I'd expect these to look the same

Weird, that's not what I see on my browser (firefox developer):
image

What browser are you on? Hopefully back properly tomorrow and can tidy all this up...

@gsproston-scottlogic
Copy link
Contributor

@gsproston-scottlogic

The line between the section header and content should be straight, but it's rounded at the sides now

Ah, I was a bit confused by this comment, and took the rounded corners off everything!

Does this look weird though? Can also have square corners on the focus indicator if you prefer. image

The highlight for the config heading and defence mechanism looks different, I'd expect these to look the same

Weird, that's not what I see on my browser (firefox developer): image

What browser are you on? Hopefully back properly tomorrow and can tidy all this up...

Oh yeah that does look a bit odd :') maybe square corners on the focus indicator would be better.
Interesting that the hightlight is different for you, I'm on Edge. 🤔

@chriswilty
Copy link
Member

@gsproston-scottlogic

Looks like outline-color: white on .control-collapsible-section-header was causing the thick white outline. We probably shouldn't define an outline outside of a :focus selector anyway, so the latest commit fixes that. Another look please?

@chriswilty chriswilty force-pushed the 307-add-visual-focus-to-all-clickable-elements branch from bc4990e to 67f65f9 Compare October 6, 2023 10:48
Copy link
Contributor

@gsproston-scottlogic gsproston-scottlogic left a comment

Choose a reason for hiding this comment

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

Looks amazing! 👍

Copy link
Contributor

@heatherlogan-scottlogic heatherlogan-scottlogic left a comment

Choose a reason for hiding this comment

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

Looks great

@chriswilty chriswilty merged commit 291dbcf into dev Oct 6, 2023
2 checks passed
@chriswilty chriswilty deleted the 307-add-visual-focus-to-all-clickable-elements branch October 6, 2023 15:23
chriswilty added a commit that referenced this pull request Apr 8, 2024
Makes focus indicators consistent, and adds them back in where they were disabled.

---------

Co-authored-by: Chris Wilton-Magras <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add visual focus to all clickable elements
4 participants