[PM-8602-8603] Sticky search & filters
đī¸ Tracking
đ Objective
- Add
slotto the popup page to allow for content to be shown above the scrollable area- A "bottom border" is shown only on scroll
- Adds an example in storybook
- Implement this for the Search & Filters in the browser extension refresh
đ¸ Screenshots
| Storybook | Browser Extension |
|---|---|
đĻŽ Reviewer guidelines
- đ (
:+1:) or similar for great changes - đ (
:memo:) or âšī¸ (:information_source:) for notes or general info - â (
:question:) for questions - đ¤ (
:thinking:) or đ (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - đ¨ (
:art:) for suggestions / improvements - â (
:x:) or â ī¸ (:warning:) for more significant problems or concerns needing attention - đą (
:seedling:) or âģī¸ (:recycle:) for future improvements or indications of technical debt - â (
:pick:) for minor or nitpick changes
Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
Project coverage is 31.60%. Comparing base (
69a37a8) to head (b6ab573). Report is 1 commits behind head on main.
| Files | Patch % | Lines |
|---|---|---|
| .../src/platform/popup/layout/popup-layout.stories.ts | 0.00% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #9846 +/- ##
==========================================
- Coverage 31.60% 31.60% -0.01%
==========================================
Files 2617 2617
Lines 78063 78064 +1
Branches 14642 14642
==========================================
Hits 24670 24670
- Misses 51524 51525 +1
Partials 1869 1869
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Checkmarx One â Scan Summary & Details â 04643ffa-a1de-4eb8-82fc-516d81aededc
No New Or Fixed Issues Found
@willmartian @vleague2 When you have time, could you give this one a review?
@willmartian
- I wasn't seeing the double scrollbar in Chromatic until I turned on my Mac's "Always show scrollbar" setting.
- Not intentional, the padding should be the same on the sticky search/filter area as the rest of the content.
- I am seeing a double scrollbar in Storybook:
I also was not seeing this because of my mac settings đ I had to move some styles and elements around but I got there 3f7973a
- Is it intentional for the padding of the sticky area to be smaller than the rest of the main content? cc @bitwarden/dept-design
Fixed! 911fb3c
- I wonder if it makes sense to add the slot to
popup-headerinstead, since it is already sticky. What do you think? ("No" is an okay answer!)
I would lean towards no because they semantically are different and it would add extra logic to the header component that I feel is unrelated. I'm not super passionate on that stance though so I can go another route! I did have to sadly move the non scrollable content out of the main 3f7973a so scrolling would work how I wanted. So maybe that is more of an argument it should go in the header.
Could you also update the popup layout mdx documentation for Storybook to document the new slot and its usage?
@vleague2 I added a small blurb here. Do you think a specific example should be added? I have only added an example to the existing stories.
@shane-melton You're a code owner on the vault changes here, when you get a chance can you take a look?