Skip to content

Commit

Permalink
Hide individual filters scrollbar
Browse files Browse the repository at this point in the history
Our contexture-react components have outdated layouts with negative
margins and other brittle things which causes filters to overflow
horizontally when scroll bars are shown. This PR hides them to prevent
this from happening.
  • Loading branch information
Alejandro Hernandez committed Apr 4, 2024
1 parent dab6493 commit f3e07ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-sheep-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'contexture-react': patch
---

Hide scrollbars from individual filters
7 changes: 7 additions & 0 deletions packages/react/src/greyVest/Style.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ export default () => (
overflow-y: auto;
max-height: 80vh;
transition: max-height .3s ease-in;
/* Gecko-based browsers */
scrollbar-width: none;
}
/* WebKit-based browsers */
.gv-expandable-body.expanded::-webkit-scrollbar {
display: none;
}
/* Table */
Expand Down

0 comments on commit f3e07ee

Please sign in to comment.