Closed yashsaraswat2004 closed 1 month ago
The pull request includes two primary changes: a CSS class modification for the hover state of menu block items in the MenuBlocks
component, changing from hover:bg-gray-50
to hover:bg-gray-300
, enhancing the visibility of the hover effect. Additionally, in the renderContent
function of the pages/casestudies/[id].tsx
file, a type annotation for the typeStyle
variable has been added to improve type safety, specifying it as HeadingTypeStyle
. No other functional changes or alterations to exported entities were made.
File | Change Summary |
---|---|
components/navigation/MenuBlocks.tsx | Changed hover class from hover:bg-gray-50 to hover:bg-gray-300 . |
pages/casestudies/[id].tsx | Added type annotation : HeadingTypeStyle to typeStyle variable in renderContent . |
Objective | Addressed | Explanation |
---|---|---|
Background Color should be visible on hovering (#[3330]) | ✅ |
ready-to-merge
, bounty
🐇 In the menu, a change so bright,
Hover now brings a joyful sight!
Type safety added with a cheer,
Making our code more clear, my dear!
With colors bright and types so right,
Let's hop along, it feels just right! 🌟
pages/casestudies/[id].tsx (1)
`45-45`: **LGTM! Type annotation improves type safety.** The addition of the `HeadingTypeStyle` type annotation for the `typeStyle` variable enhances type safety and code maintainability.
Built without sensitive environment variables
Name | Link |
---|---|
Latest commit | e3705eb79d300dfad8801aa1b91d333527f89290 |
Latest deploy log | https://app.netlify.com/sites/asyncapi-website/deploys/671f6e41e74e940008b6a7cd |
Deploy Preview | https://deploy-preview-3337--asyncapi-website.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
⚡️ Lighthouse report for the changes in this PR: | Category | Score |
---|---|---|
🔴 Performance | 44 | |
🟢 Accessibility | 98 | |
🟢 Best practices | 92 | |
🟢 SEO | 100 | |
🔴 PWA | 33 |
Lighthouse ran on https://deploy-preview-3337--asyncapi-website.netlify.app/
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 49.14%. Comparing base (
7c27ab6
) to head (e3705eb
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR fixes an issue with the visibility of background colors on components in the dropdown menu when hovering. Previously, hovering over dropdown items within the Docs, Community, and Tools menus did not display the intended background color, causing a poor user experience.
To address this:
Updated the background color styling to improve contrast and visibility for dropdown items on hover. Verified that changes are consistent across different dropdown menus for a cohesive look. Screenshots
How to Test
Open the ASyncAPI website in Google Chrome. Hover over Docs, Community, or Tools in the navigation bar to trigger the dropdown menu. Move the cursor over items in the dropdown menu to see the hover effect. Related Issue(s)
Fixes #3330
Summary by CodeRabbit
Style
Chores
renderContent
function.