Wykres commitów

14 Commity (af4c4d06535f8e0c6f86d79c08648020421251ae)

Autor SHA1 Wiadomość Data
Steve Stein af4c4d0653
Change slim sidebar to be fully usable in slim mode. Fix #7918 (#8197)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

- Removing the peeking attribute so the sidebar only opens when intentionally set to expanded mode by using expand or search or account functionalities
- Adding tooltips on link item hovers
- Expanding of slim sidebar when search is clicked and when account options are clicked
2022-03-28 15:43:35 +01:00
Steve Stein 229fbf476a
Sidebar style updates (#8118)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-23 03:27:12 +00:00
LB (Ben Johnston) 042d077fc1
Minor accessibility fixes to new slim sidebar menu items (#8015)
* Consistently set `aria-haspopup="menu"` for all sidebar menu items that have sub-menus (LB (Ben Johnston))
 * Make sure `aria-expanded` is always explicitly set as a string in sidebar (LB (Ben Johnston))
 * Use a button element instead of a link for page explorer menu item, for the correct semantics and behavior (LB (Ben Johnston))
2022-03-15 14:53:40 +00:00
Thibaud Colas af942a27e4
Reformat codebase with Prettier (#7912)
- Automated reformatting
- Manually change code where Prettier reformatting causes issues
- Revert "Disable Prettier formatting in CI for now"
2022-02-04 11:57:55 +00:00
Thibaud Colas 7c4b82bb8e Add ARIA markup for sidebar regions and toggle buttons 2022-01-12 16:46:08 +00:00
Karl Hobley 45b7788c6d
Completely hide sidebar in mobile mode (#7481)
* Add bars.svg icon

* Add Open/Close button for mobile mode

* Completely hide sidebar in mobile mode

* mobile state tweaks

* Rename 'open' to 'visibleOnMobile'
* Don't initialise 'collapsed' state based on screen size (old code)
* Remove main.sidebar--open (not used)

Co-authored-by: Storm Heg <storm@stormbase.digital>
2021-09-02 16:38:03 +01:00
Karl Hobley bb7620f445
Frontend improvements for new slim sidebar (#7469)
* Fix left padding not changing fast enough

* Make all icons stay in a fixed Y position

So they don't move when you hover

* Make the Wagtail a bit bigger in collapsed mode

* Fix position of search icon when expanding/contracting menu

* Animation refinements

* Fix gap between icon and text changing for legacy icons during collapse

* Only peek the menu if the mouse hovers over a menu

This fixes an issue where peeking wouldn't happen if you collapsed the
menu and then hovered over a menu item without the mouse leaving the
sidebar. It now always peeks when the user hovers the menu item.

But we still want to avoid it peeking when the user clicks the collapse
button, so I've moved the mouse enter/leave handlers to a sub-element
that doesn't include this button.

* Peek the sidebar on focus

Allows the sidebar to open when it receives keyboard focus, and stops it
annoyingly closing while you are typing a search query.

* Remove the start peeking timeout
2021-08-31 12:00:29 +01:00
Storm Heg 952264a2ab
Slim sidebar: remember collapsed state 2021-07-23 10:47:50 +01:00
Storm Heg 877297f67e
[slim-sidebar] Styling changes 2021-06-23 21:50:33 +01:00
Storm Heg c475e96d1b Give every sidebar module a numerical key
This stops React from complaining that every child in a list should
have a unique key prop.
2021-06-22 13:25:00 +01:00
Matt Westcott 9d19c2aa13 Fix eslint warnings 2021-06-21 14:34:40 +01:00
Karl Hobley e047266153 Convert Icon to TypeScript 2021-06-11 09:32:18 +01:00
Karl Hobley 5dabd762fa Use React event listeners for peeking the sidebar 2021-06-10 14:18:19 +01:00
Karl Hobley 33af79a1c4 Initial work on new sidebar react/css 2021-06-10 14:18:19 +01:00