Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-navigation-side-menu] selection color change #2155

Merged
merged 6 commits into from
May 8, 2024

Conversation

MadanKumarGovindaswamy
Copy link
Contributor

@MadanKumarGovindaswamy MadanKumarGovindaswamy commented May 6, 2024

Summary

What was changed:

Updated background color for the selected item in the menu list.

Why it was changed:

Existing background color for the selected item does not match the other terra component styles

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-XXXX


Thank you for contributing to Terra.
@cerner/terra

@MadanKumarGovindaswamy MadanKumarGovindaswamy self-assigned this May 6, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-2155 May 6, 2024 05:51 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-2155 May 6, 2024 05:57 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-2155 May 6, 2024 06:18 Destroyed
@supreethmr
Copy link
Contributor

Summary

What was changed:

Changed styles for selected item background color styles.

Why it was changed:

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-XXXX

Thank you for contributing to Terra. @cerner/terra

No Jira Key for this Changes ?

@MadanKumarGovindaswamy
Copy link
Contributor Author

MadanKumarGovindaswamy commented May 6, 2024

-- No JIRA for this @supreethmr . This was raised in the demo call.

@supreethmr
Copy link
Contributor

supreethmr commented May 6, 2024

Can you add more details on PR description about the changes.

Previous screenshots seems to have selectedItem in bold and blue left border. https://github.com/cerner/terra-framework/pull/2155/files#diff-83d99d284c785bf351e17f3df0297049e247a1686c0b785141df5b63c41b6912

I think the existing styles of selected item (except background color) looks more appropriate then the new selectedItem styles being added on this PR.

Curious to know, Has UX team reviewed the new style changes for selectedItem

@github-actions github-actions bot temporarily deployed to preview-pr-2155 May 6, 2024 09:10 Destroyed
@MadanKumarGovindaswamy
Copy link
Contributor Author

Discussion is to change the background color for the selected item in the menu. I made the change to keep the existing styles and just updated the background color.
UX team has not reviewed the new style changes for selectedItem.

Thanks

@github-actions github-actions bot temporarily deployed to preview-pr-2155 May 6, 2024 09:36 Destroyed
@@ -396,7 +396,7 @@ class NavigationSideMenu extends Component {
aria-relevant="additions text"
refCallback={this.setVisuallyHiddenComponent}
/>
<ContentContainer {...customProps} fill className={sideMenuContentContainerClassNames}>
Copy link
Contributor

Choose a reason for hiding this comment

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

why was the fill removed here and width and height 100% added through css class ?

Copy link
Contributor Author

@MadanKumarGovindaswamy MadanKumarGovindaswamy May 6, 2024

Choose a reason for hiding this comment

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

fill is removed here from the content container prop because it has position absolute css styles along with min height of 50 px in the parent container. which is creating a problem when we zoom in to 400%.

width and height can be removed. will update this.

Screenshot 2024-05-06 at 5 08 11 PM

@@ -112,7 +112,7 @@

&:hover,
&.is-hovered {
background-color: var(--terra-navigation-side-menu-item-selected-hover-background-color, #f4f4f4);
background-color: var(--terra-navigation-side-menu-item-selected-hover-background-color, darken(#ebf6fd, 2%));
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the darken() function has same effects on all the browsers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This color codes are taken from the other terra components(terra-list). it has been validated before, so it should be working.

@supreethmr
Copy link
Contributor

Discussion is to change the background color for the selected item in the menu. I made the change to keep the existing styles and just updated the background color. UX team has not reviewed the new style changes for selectedItem.

Thanks

Can you check again it looks like the selected styles are still missing in this screenshot https://github.com/cerner/terra-framework/pull/2155/files#diff-83d99d284c785bf351e17f3df0297049e247a1686c0b785141df5b63c41b6912

@MadanKumarGovindaswamy
Copy link
Contributor Author

Can you check again it looks like the selected styles are still missing in this screenshot https://github.com/cerner/terra-framework/pull/2155/files#diff-83d99d284c785bf351e17f3df0297049e247a1686c0b785141df5b63c41b6912

@supreethmr The change here is when the menu item has submenu(chevron icon) even if it selected we will not apply the selected css styles.

@rahulkumar8cs
Copy link

+1

@saket2403 saket2403 merged commit df27d2e into main May 8, 2024
22 checks passed
@saket2403 saket2403 deleted the Navigation-side-menu-css-changes branch May 8, 2024 09:33
@saket2403 saket2403 added ⭐ UX Reviewed UX Reviewed and approved. and removed UX Review Required labels May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants