Skip to content

Commit 4c644cd

Browse files
authored
Rollup merge of #102699 - GuillaumeGomez:fix-hamburger-button-color, r=Dylan-DPC
Fix hamburger button color Before: ![Screenshot from 2022-10-05 11-14-20](https://user-images.githubusercontent.com/3050060/194026621-e4df5750-92df-4194-a163-9787b45ace26.png) After: ![Screenshot from 2022-10-05 11-14-15](https://user-images.githubusercontent.com/3050060/194026618-6a365623-5181-4174-b6af-66962e5ba6a5.png) No need to backport it, beta doesn't seem affected. r? `@notriddle`
2 parents cec087a + d7f357d commit 4c644cd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/librustdoc/html/static/css/rustdoc.css

+1
Original file line numberDiff line numberDiff line change
@@ -1826,6 +1826,7 @@ in storage.js plus the media query with (min-width: 701px)
18261826
as an icon, it's okay to specify its sizes in pixels. */
18271827
font-size: 32px;
18281828
border: none;
1829+
color: var(--main-color);
18291830
}
18301831

18311832
.sidebar-elems {

src/test/rustdoc-gui/sidebar-mobile.goml

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,24 @@ scroll-to: ".block.keyword li:nth-child(1)"
4242
compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 543})
4343

4444
// Now checking the background color of the sidebar.
45+
show-text: true
4546
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "dark"}
4647
reload:
4748

4849
// Open the sidebar menu.
4950
click: ".sidebar-menu-toggle"
50-
assert-css: (".sidebar", {"background-color": "rgb(80, 80, 80)"})
51+
assert-css: (".sidebar", {"background-color": "rgb(80, 80, 80)", "color": "rgb(221, 221, 221)"})
5152

5253
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "ayu"}
5354
reload:
5455

5556
// Open the sidebar menu.
5657
click: ".sidebar-menu-toggle"
57-
assert-css: (".sidebar", {"background-color": "rgb(20, 25, 31)"})
58+
assert-css: (".sidebar", {"background-color": "rgb(20, 25, 31)", "color": "rgb(197, 197, 197)"})
5859

5960
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "light"}
6061
reload:
6162

6263
// Open the sidebar menu.
6364
click: ".sidebar-menu-toggle"
64-
assert-css: (".sidebar", {"background-color": "rgb(245, 245, 245)"})
65+
assert-css: (".sidebar", {"background-color": "rgb(245, 245, 245)", "color": "rgb(0, 0, 0)"})

0 commit comments

Comments
 (0)