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

Feature/DetailsList scrollbars only appear onHover #1023

Conversation

acchiang
Copy link
Contributor

Overview

The existing DetailsList scrollbars are the default Edge light mode scrollbars that appear when there is overflow (see right of screenshot below), and they are jarring to the user especially if they are on dark mode.
image

https://dev.azure.com/microsoftgarage/Intern%20GitHub/_sprints/taskboard/GI21%20-%20Graph%20Explorer/Intern%20GitHub/Y21-S/06?workitem=38891

Demo

The changes in this PR will hide the scrollbars until the user hovers over a DetailsList with overflow, then the scrollbars will appear.
https://gyazo.com/ceaaa8648891cd6e7b672bac68b775d8

Notes

Four scrollbars have been changed:
History list, Sample Queries list, Permissions (panel tab) list, and Request Headers (panel tab) list.

Testing Instructions

  • Front-end, test the four lists above (and shown in the demo recording).
  • Cross browser testing: developed in Edge and Chrome

@acchiang
Copy link
Contributor Author

I also found a custom useHover hook I could build instead of using useState in multiple places, let me know if I should update with this custom hook instead: https://usehooks.com/useHover/

@thewahome thewahome linked an issue Jul 15, 2021 that may be closed by this pull request
@thewahome thewahome merged commit 0db743e into microsoftgraph:dev Jul 23, 2021
@acchiang acchiang deleted the interns/acchiang/38891-detailslist-scrollbars-appear-onhover branch July 26, 2021 16:40
thewahome added a commit that referenced this pull request Aug 3, 2021
* Task: Add chat-id & membership-id (#1024)

* Fix: query link parsing with trailing '.' (#1033)

* Feature: DetailsList scrollbars only appear onHover (#1023)

* Feature: automatic dark light mode (#1019)

* Task: add translated aria labels (#1040)

* Task: remove sandbox api test (#1042)

* Fix: change hover scroll behaviour (#1043)

* Fix: Accessibility bugs - Aug  (#1041)

* Feature: Add Expanding Query Input Field (#1020)
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.

Show scrollbar only on hover
2 participants