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: flat buttons #122

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Conversation

huyenltnguyen
Copy link
Member

Checklist:

Closes freeCodeCamp/freeCodeCamp#54356.

There are two issues in the ticket:

  1. Header items are not visible in day theme
  2. Icon of the bookmark button is not visible on hover

(1) was fixed by #121, and this PR addresses (2).

Screenshots

State Before After
At rest Screenshot 2024-04-18 at 22 33 45 Screenshot 2024-04-18 at 22 20 22
Hovered Screenshot 2024-04-18 at 22 34 13 Screenshot 2024-04-18 at 22 20 35

@@ -611,7 +611,7 @@ td.poster-names a {
}

//buttons ----------------------------
.btn,
.btn:not(.btn-flat),
Copy link
Member Author

Choose a reason for hiding this comment

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

Other icon-only buttons don't have the btn class, but the bookmark button does, so it's affected by this selector.

Screenshot 2024-04-18 at 22 36 28

The fix is to exclude the btn-flat class from the selector as buttons with this class are less bright and don't have a border (which are what the btn class wants to change).

@huyenltnguyen huyenltnguyen marked this pull request as ready for review April 18, 2024 15:53
@huyenltnguyen huyenltnguyen requested a review from a team as a code owner April 18, 2024 15:53
@raisedadead raisedadead merged commit a7ee153 into freeCodeCamp:main Apr 18, 2024
1 check passed
@huyenltnguyen huyenltnguyen deleted the fix/flat-buttons branch April 19, 2024 04:24
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.

Forum Theme issues
2 participants