File tree 2 files changed +22
-1
lines changed
librustdoc/html/static/css
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1855,7 +1855,6 @@ in storage.js plus the media query with (min-width: 701px)
1855
1855
the sidebar stays visible for screen readers, which is useful for navigation. */
1856
1856
left : -1000px ;
1857
1857
margin-left : 0 ;
1858
- background-color : rgba (0 , 0 , 0 , 0 );
1859
1858
margin : 0 ;
1860
1859
padding : 0 ;
1861
1860
z-index : 11 ;
Original file line number Diff line number Diff line change @@ -40,3 +40,25 @@ assert-position: ("#method\.must_use", {"y": 45})
40
40
click: ".sidebar-menu-toggle"
41
41
scroll-to: ".block.keyword li:nth-child(1)"
42
42
compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 543})
43
+
44
+ // Now checking the background color of the sidebar.
45
+ local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "dark"}
46
+ reload:
47
+
48
+ // Open the sidebar menu.
49
+ click: ".sidebar-menu-toggle"
50
+ assert-css: (".sidebar", {"background-color": "rgb(80, 80, 80)"})
51
+
52
+ local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "ayu"}
53
+ reload:
54
+
55
+ // Open the sidebar menu.
56
+ click: ".sidebar-menu-toggle"
57
+ assert-css: (".sidebar", {"background-color": "rgb(20, 25, 31)"})
58
+
59
+ local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "light"}
60
+ reload:
61
+
62
+ // Open the sidebar menu.
63
+ click: ".sidebar-menu-toggle"
64
+ assert-css: (".sidebar", {"background-color": "rgb(245, 245, 245)"})
You can’t perform that action at this time.
0 commit comments