Skip to content

sidebar backdrop#266

Merged
mbostock merged 4 commits intomainfrom
mbostock/sidebar-backdrop
Nov 29, 2023
Merged

sidebar backdrop#266
mbostock merged 4 commits intomainfrom
mbostock/sidebar-backdrop

Conversation

@mbostock
Copy link
Copy Markdown
Member

Fixes #208. Adds a new backdrop that appears on small screens when the sidebar is floating; clicking it dismisses the sidebar. I experimented with using backdrop-filter: blur and a partially transparent background-color on the backdrop, but I think it looks better with no visual effect… especially since the page is still scrollable when the floating sidebar is open.

@mbostock mbostock requested review from Fil and trebor November 29, 2023 02:37
@mbostock mbostock enabled auto-merge (squash) November 29, 2023 02:38
@mbostock mbostock force-pushed the mbostock/sidebar-backdrop branch from dbb5802 to 6e141d8 Compare November 29, 2023 02:38
@mbostock mbostock force-pushed the mbostock/sidebar-backdrop branch from 6e141d8 to 223a48b Compare November 29, 2023 02:39
Fil added 3 commits November 29, 2023 08:24
Addresses the following scenario: the user starts on a small window, types cmd-B to show the sidebar, then enlarges the window to read the contents, and wants to click on a link. If we didn't hide the backdrop, the click would close the sidebar and move the contents to the left.
@Fil
Copy link
Copy Markdown
Contributor

Fil commented Nov 29, 2023

Fixed a small bug in the following scenario: the user starts on a small window, types cmd-B to show the sidebar, then enlarges the window to read the contents, and wants to click on a link.The click would close the sidebar and move the contents to the left.

@mbostock mbostock merged commit 2f87fdf into main Nov 29, 2023
@mbostock mbostock deleted the mbostock/sidebar-backdrop branch November 29, 2023 07:58
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.

In narrow windows, clicking the body should hide the floating sidebar

2 participants