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: standardize focus outline style #119

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

huyenltnguyen
Copy link
Member

Checklist:

This PR sets a custom focus outline to the forum theme in order to make its display consistent across browsers.

Result

focus-outline

Note: The Categories button looks a little off, and I have #117 to address that separately.

Comment on lines +100 to +103
@mixin focus-outline {
outline: 3px solid $--blue-50 $i;
outline-offset: 0 $i;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +814 to +818
.topic-list .main-link {
&.focused {
box-shadow: none $i; /* Unset the default Discourse styles */
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Discourse adds a blue stripe to the left edge of a focused item. We don't need it as we want to use our own styles.

@huyenltnguyen huyenltnguyen marked this pull request as ready for review March 26, 2024 07:36
@huyenltnguyen huyenltnguyen requested a review from a team as a code owner March 26, 2024 07:36
@raisedadead raisedadead merged commit 31cb6a1 into freeCodeCamp:main Mar 28, 2024
1 check passed
@huyenltnguyen huyenltnguyen deleted the fix/focus-outline branch April 1, 2024 04:36
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.

2 participants