diff options
| author | 2022-04-02 14:15:41 -0600 | |
|---|---|---|
| committer | 2022-04-02 14:15:41 -0600 | |
| commit | 1335797903a57716e9a02b0ffd8ca636b3883c62 (patch) | |
| tree | d8835124fec7ab80bfbf25c6d9c5a57039a1c56d /examples/docs/src/components/Header/SidebarToggle.tsx | |
| parent | d63213f1198293e72bb9d9734bf4ec8309c515d4 (diff) | |
| download | astro-1335797903a57716e9a02b0ffd8ca636b3883c62.tar.gz astro-1335797903a57716e9a02b0ffd8ca636b3883c62.tar.zst astro-1335797903a57716e9a02b0ffd8ca636b3883c62.zip | |
update prettier width (#2968)
Diffstat (limited to 'examples/docs/src/components/Header/SidebarToggle.tsx')
| -rw-r--r-- | examples/docs/src/components/Header/SidebarToggle.tsx | 23 | 
1 files changed, 20 insertions, 3 deletions
| diff --git a/examples/docs/src/components/Header/SidebarToggle.tsx b/examples/docs/src/components/Header/SidebarToggle.tsx index 90b180461..2be9dee9a 100644 --- a/examples/docs/src/components/Header/SidebarToggle.tsx +++ b/examples/docs/src/components/Header/SidebarToggle.tsx @@ -15,9 +15,26 @@ const MenuToggle: FunctionalComponent = () => {  	}, [sidebarShown]);  	return ( -		<button type="button" aria-pressed={sidebarShown ? 'true' : 'false'} id="menu-toggle" onClick={() => setSidebarShown(!sidebarShown)}> -			<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 24 24" stroke="currentColor"> -				<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> +		<button +			type="button" +			aria-pressed={sidebarShown ? 'true' : 'false'} +			id="menu-toggle" +			onClick={() => setSidebarShown(!sidebarShown)} +		> +			<svg +				xmlns="http://www.w3.org/2000/svg" +				width="1em" +				height="1em" +				fill="none" +				viewBox="0 0 24 24" +				stroke="currentColor" +			> +				<path +					stroke-linecap="round" +					stroke-linejoin="round" +					stroke-width="2" +					d="M4 6h16M4 12h16M4 18h16" +				/>  			</svg>  			<span className="sr-only">Toggle sidebar</span>  		</button> | 
