about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/sidebar-mobile.goml
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-88/+0
2023-01-06Use new block syntax for define-function in goml scriptsGuillaume Gomez-7/+7
2022-11-27Rollup merge of #104955 - GuillaumeGomez:migrate-to-func, r=notriddleMatthias Krüger-17/+29
Switch rustdoc-gui test to function call r? `@notriddle`
2022-11-26Switch rustdoc-gui test to function callGuillaume Gomez-17/+29
2022-11-26rustdoc: improve popover focus handling JSMichael Howell-0/+6
This commit fixes a few inconsistencies and erratic behavior from the notable traits, settings, and sidebar popups: * It makes it so that pressing Escape closes the mobile sidebar. This is a bit difficult to do on iPhone, but on other setups like desktop tiling window managers, it's easy and makes sense. * It makes sure that pressing escape while a notable trait popover is open focuses the popover's toggle button, instead of leaving nothing focused, since that makes more sense with keyboard navigation. Clicking the settings, help, or sidebar buttons, however, will not focus the notable trait popover toggle button. * It ensures that notable trait and settings popovers are exclusive with the mobile sidebar. Nothing should ever overlap a popover, and there should never be more than one popover open at once.
2022-10-18rustdoc: remove class name `location` from sidebar sibling navMichael Howell-1/+6
This change tweaks the CSS to apply most of its styles to `.sidebar h2`, cleaning up a few redundant rules from `.mobile-topbar .location` and restoring useful navigation aids in mobile mode.
2022-10-15rustdoc: update test cases for `.sidebar-title` -> `.sidebar-elems h3`Michael Howell-1/+1
2022-10-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-1/+1
2022-10-05Add regression test for hamberger button color in mobile sidebarGuillaume Gomez-3/+4
2022-07-25Add GUI test to prevent sidebar background regressionGuillaume Gomez-0/+22
2022-02-16Update rustdoc tests to adapt to changes to the sidebarGuillaume Gomez-1/+1
2022-02-07Fix hover effects in sidebarJacob Hoffman-Andrews-1/+1
The dark and ayu themes have a menu-like highlight on sidebar items. The light theme used to, but it was accidentally lost in the sidebar unification. The change brings back the hover effect in the light theme. It also makes the hover effect apply consistently to all links in the sidebar, including headings. It also simplifies the "In _path_" heading so it's one big link. The breadcrumbs are still readily available at the top of the page.
2022-02-05Linkify sidebar headings for sibling itemsJacob Hoffman-Andrews-1/+1
Also adjust CSS so this doesn't produce excess padding/margin.
2022-01-29rustdoc: small fixes to mobile navigationJacob Hoffman-Andrews-0/+5
- Make sure the mobile-topbar doesn't overflow its height if the user sets a bigger font. - Make sure the sidebar can be scrolled all the way to the bottom by shortening it to accommodate the mobile-topbar. - Make the item name in the mobile-topbar clickable to go to the top of the page. - Remove excess padding sidebar in mobile mode.
2022-01-19Fix scroll offset when jumping to internal idJacob Hoffman-Andrews-0/+6
2022-01-18Simplify and unify rustdoc sidebar stylesJacob Hoffman-Andrews-10/+13
This switches to just use size, weight, and spacing to distinguish headings in the sidebar. We no longer use boxes, horizontal bars, or centering to distinguish headings. This makes it much easier to understand the hierarchy of headings, and reduces visual noise. I also refactored how the mobile topbar works. Previously, we tried to shift around elements from the sidebar to make the topbar. Now, the topbar gets its own elements, which can be styled on their own. This makes styling and reasoning about those elements simpler. Because the heading font sizes are bigger, increase the sidebar width slightly. As a very minor change, removed version from the "All types" page. It's now only on the crate page.
2022-01-17Hide mobile sidebar on some clicksJacob Hoffman-Andrews-0/+8
When the user clicks outside the sidebar, the sidebar should close. Also, when the user clicks an internal link in the sidebar, it should close.
2021-07-17Fix sidebar-mobile test to focus on an actual focusable elementMichael Howell-1/+1
2021-07-16feat(rustdoc): open sidebar menu when links inside it are focusedMichael Howell-0/+10
Fixes #87172 Based on #87167 (which should be merged first) Preview it at https://notriddle.com/notriddle-rustdoc-test/std/index.html Co-authored-by: Guillaume Gomez <guillaume.gomez@huawei.com>
2021-07-15Add test for sidebar display value on mobileGuillaume Gomez-0/+10