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

chore: Allow drawer content to use full height #2986

Merged
merged 5 commits into from
Nov 8, 2024
Merged

Conversation

jkuelz
Copy link
Member

@jkuelz jkuelz commented Nov 6, 2024

Description

This is a follow up from #2924 that addresses double scrollbar issue in Q chat panel (AWSUI-59823).
It also addresses an issue in Firefox where side nav would have a scrollbar when there was no side nav header present, the original reason for revert. The other issue regarding flashing scrollbar has been extracted from this PR.

Related links, issue #, if available: AWSUI-59823, TT: V1549419424, TT: D169004346,

How has this been tested?

Related screenshot tests added in CR-158701022
Ran through dev pipeline screenshot approvals:

  • 1st: 833b9bfc-f87e-462e-b8e9-3d6f48d73c2a
  • 2nd: 42b2f287-623e-4d54-ba8d-29edf66bea4d
Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jkuelz jkuelz requested a review from a team as a code owner November 6, 2024 06:39
@jkuelz jkuelz requested review from Al-Dani, just-boris and a team and removed request for a team November 6, 2024 06:39
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.27%. Comparing base (62f01ce) to head (901f404).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2986   +/-   ##
=======================================
  Coverage   96.27%   96.27%           
=======================================
  Files         769      769           
  Lines       21764    21768    +4     
  Branches     7038     7039    +1     
=======================================
+ Hits        20954    20958    +4     
  Misses        802      802           
  Partials        8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

just-boris
just-boris previously approved these changes Nov 6, 2024
Copy link
Member

@just-boris just-boris left a comment

Choose a reason for hiding this comment

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

Approved, but can be simplified further

@@ -58,6 +58,9 @@
block-size: 100%;
position: relative;
}
> .drawer-content-wrapper[aria-hidden='false'] {
Copy link
Member

Choose a reason for hiding this comment

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

I did not find any condition when aria-hidden=true is applied on this selector. Does it mean we can remove that part of the selector?

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting, that feels unexpected because aria-hidden is set to !isOpen here. I would've expected it to change when the drawer is opened/closed, like it does for help panel and side nav.

It appears that isOpen always returns true because it is hardcoded this way. Not sure exactly when or what changed to make the isOpen condition obsolete. But I have removed this condition from the style.

@@ -20,6 +20,7 @@
overscroll-behavior-y: contain;
word-wrap: break-word;
pointer-events: auto;
display: flex;
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed?

The default is flex-direction: row and I do not think we want this

Copy link
Member

Choose a reason for hiding this comment

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

Discussed in DM, it relies on the default align-items: stretch behavior to stretch a single child.

Risky practice, but okay

Copy link
Member Author

Choose a reason for hiding this comment

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

There is only one child, so it's not actually aligning anything horizontally or vertically. But I can add a more explicit definition.

Copy link
Member

Choose a reason for hiding this comment

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

Thank makes it easier to follow, thanks

src/app-layout/visual-refresh/navigation.scss Show resolved Hide resolved
just-boris
just-boris previously approved these changes Nov 7, 2024
@jkuelz jkuelz added this pull request to the merge queue Nov 8, 2024
Merged via the queue into main with commit 672e7f8 Nov 8, 2024
40 checks passed
@jkuelz jkuelz deleted the jkuelz-drawer-fix-2 branch November 8, 2024 01:40
timogasda pushed a commit that referenced this pull request Nov 18, 2024
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