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

Category tab margin #7279

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

Conversation

Waakul
Copy link
Contributor

@Waakul Waakul commented Mar 19, 2024

Resolves #7278

Changes

Margin added, Border radius, and darker color for selected category, taller side indicator
image

Reason for changes

Better accessibilty as mentioned in #7278

Tests

Microsoft Edge (Chromium)

@Waakul
Copy link
Contributor Author

Waakul commented Mar 20, 2024

Should i make the indicator on the side full-height?

@Samq64
Copy link
Member

Samq64 commented Mar 23, 2024

I would suggest adding the sidebar changes from #7214 since it's unlikely to be merged any time soon.

Should i make the indicator on the side full-height?

Maybe, but I think it also looks fine the way it is now.

@Samq64 Samq64 added scope: design Related to design of the extension scope: webpages Related to the web pages (settings page, pop-up, etc) labels Mar 23, 2024
@Secret-chest
Copy link
Contributor

Can we just make it wider? Adding a margin reduces the click area, read Fitts' law.

@BroJac5246
Copy link
Contributor

Adding a margin reduces the click area, read Fitts' law.

However, your cursor generally isn't in the leftmost part of the tab, so it doesn't have to move any further. Also, the margin only slightly decreases the clickable area and therefore shouldn't have a large impact on clickability. Good UIs have find a balance between usability and design and this change will be worth it IMO.

@Secret-chest
Copy link
Contributor

However, your cursor generally isn't in the leftmost part of the tab, so it doesn't have to move any further. Also, the margin only slightly decreases the clickable area and therefore shouldn't have a large impact on clickability. Good UIs have find a balance between usability and design and this change will be worth it IMO.

Can't you just make it wider?

@BroJac5246
Copy link
Contributor

However, your cursor generally isn't in the leftmost part of the tab, so it doesn't have to move any further. Also, the margin only slightly decreases the clickable area and therefore shouldn't have a large impact on clickability. Good UIs have find a balance between usability and design and this change will be worth it IMO.

Can't you just make it wider?

You could, but it's already plenty wide.

Samq64
Samq64 previously approved these changes Mar 24, 2024
Copy link
Member

@Samq64 Samq64 left a comment

Choose a reason for hiding this comment

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

You're right, the full height bar does look a lot better. Could it be applied to the subcategories too?

@Samq64 Samq64 dismissed their stale review March 24, 2024 23:44

Didn't mrean to approve

@Samq64
Copy link
Member

Samq64 commented Mar 24, 2024

You're right, the full height bar does look a lot better. Could it also be applied to the subcategories?

@Waakul Waakul requested a review from Samq64 March 30, 2024 09:31
@mxmou mxmou self-requested a review March 30, 2024 12:58
@Waakul
Copy link
Contributor Author

Waakul commented Apr 12, 2024

@Samq64 @mxmou just a reminder to please review this.

Copy link
Member

@Samq64 Samq64 left a comment

Choose a reason for hiding this comment

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

Seems fine although it does take up a lot of space on smaller screens.

@Samq64 Samq64 added the status: needs review [Use when there's already 1 approval] Review needed on the PR label Apr 12, 2024
@Waakul
Copy link
Contributor Author

Waakul commented Apr 12, 2024

reduce margin a bit? (vote 👍 or 👎 )

@Samq64
Copy link
Member

Samq64 commented Apr 12, 2024

Also category-small has a twice the vertical margin it's supposed to.

Screenshot

image

Copy link
Member

@mxmou mxmou left a comment

Choose a reason for hiding this comment

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

I don't like the amount of space this adds - the categories already have a lot of padding. Moving the selection indicator away from the edge instead of adding a margin might be a better solution:
image

Another option is to keep the margin but reduce the padding by 5px on each side - the result looks similar:
image

@mxmou mxmou changed the title Category tab margin for better accessibilty Category tab margin Apr 14, 2024
Co-authored-by: Maximouse <51849865+mxmou@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: design Related to design of the extension scope: webpages Related to the web pages (settings page, pop-up, etc) status: needs review [Use when there's already 1 approval] Review needed on the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selected category tab is hard to distinguish from the background
5 participants