Skip to content

Allow light mode in Hero and color updates #775

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

Merged
merged 14 commits into from
Feb 13, 2024

Conversation

hqhhuang
Copy link
Contributor

@hqhhuang hqhhuang commented Feb 1, 2024

Bug/issue #, if applicable: 120847903

Summary

This PR adds the ability to have light mode background in the hero and updates gradient style.

Testing

Steps:

  1. Dark background are still on as a default. Test that pages look the same and doesn't have any regressions

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran npm test, and it succeeded
  • Updated documentation if necessary

Update hero color
Add test and update header
chore: clean up
@hqhhuang
Copy link
Contributor Author

hqhhuang commented Feb 1, 2024

@swift-ci test

Fix color for Language Switcher
revert `isHeroDark` prop
remove unnecessary theme-dark CSS
Copy link
Member

@marinaaisa marinaaisa left a comment

Choose a reason for hiding this comment

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

Hi @hqhhuang , great job! I tested it and it looks good!

I added some questions related to prefers-dark and theme-dark to see if we can simplify and avoid duplication of code.

@hqhhuang hqhhuang requested a review from marinaaisa February 8, 2024 19:31
@hqhhuang
Copy link
Contributor Author

hqhhuang commented Feb 8, 2024

@swift-ci test

Copy link
Contributor

@mportiz08 mportiz08 left a comment

Choose a reason for hiding this comment

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

This is looking pretty good!

I do have a minor concern about the contrast for certain text with these new colors.

Make badge text darker
Update language switcher style
@hqhhuang
Copy link
Contributor Author

hqhhuang commented Feb 9, 2024

@swift-ci test

@hqhhuang hqhhuang requested a review from mportiz08 February 9, 2024 23:14
Copy link
Member

@marinaaisa marinaaisa left a comment

Choose a reason for hiding this comment

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

Tested and it looks great! thank you!

@hqhhuang
Copy link
Contributor Author

@swift-ci test

@hqhhuang hqhhuang merged commit 6019569 into swiftlang:main Feb 13, 2024
@hqhhuang hqhhuang deleted the update-hero-style branch February 13, 2024 22:10
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.

3 participants