File tree 3 files changed +6
-30
lines changed
src/pydata_sphinx_theme/assets/styles
3 files changed +6
-30
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ul.bd-breadcrumbs {
5
5
list-style : none ;
6
6
padding-left : 0 ;
7
7
display : flex ;
8
- flex-wrap : nowrap ;
8
+ flex-wrap : wrap ;
9
9
10
10
// Font size slightly smaller to avoid cluttering up space too much
11
11
font-size : 0.8rem ;
@@ -14,16 +14,12 @@ ul.bd-breadcrumbs {
14
14
display : flex ;
15
15
align-items : center ;
16
16
white-space : nowrap ;
17
- flex-shrink : 0 ;
17
+ overflow-x : hidden ;
18
18
19
- & .active {
20
- flex-shrink : 1 ;
19
+ a ,
20
+ .ellipsis {
21
21
overflow-x : hidden ;
22
-
23
- .ellipsis {
24
- overflow-x : hidden ;
25
- text-overflow : ellipsis ;
26
- }
22
+ text-overflow : ellipsis ;
27
23
}
28
24
29
25
// Style should look like heavier in-page links
Original file line number Diff line number Diff line change 4
4
// The items define the height so that it disappears if there are no items
5
5
.header-article-item {
6
6
min-height : var (--pst-header-article-height );
7
- height : var (--pst-header-article-height );
8
- }
9
-
10
- .header-article-items__start ,
11
- .header-article-items__end {
12
- align-items : start ;
13
- gap : 0.5rem ;
14
7
}
15
8
16
9
.header-article-items__end {
Original file line number Diff line number Diff line change 9
9
playwright = pytest .importorskip ("playwright" )
10
10
from playwright .sync_api import Page , expect # noqa: E402
11
11
12
- # Important note: automated accessibility scans can only find a fraction of
13
- # potential accessibility issues.
14
- #
15
- # This test file scans pages from the Kitchen Sink examples with a JavaScript
16
- # library called Axe-core, which checks the page for accessibility violations,
17
- # such as places on the page with poor color contrast that would be hard for
18
- # people with low vision to see.
19
- #
20
- # Just because a page passes the scan with no accessibility violations does
21
- # *not* mean that it will be generally usable by a broad range of disabled
22
- # people. It just means that page is free of common testable accessibility
23
- # pitfalls.
24
-
25
12
path_repo = Path (__file__ ).parent .parent
26
13
path_docs_build = path_repo / "docs" / "_build" / "html"
27
14
@@ -38,7 +25,7 @@ def _is_overflowing(element):
38
25
39
26
40
27
def test_version_switcher_highlighting (page : Page , url_base : str ) -> None :
41
- """This isn't an a11y test, but needs a served site for Javascript to inject the version menu ."""
28
+ """In sidebar and topbar - version switcher should apply highlight color to currently selected version."""
42
29
page .goto (url = url_base )
43
30
# no need to include_hidden here ↓↓↓, we just need to get the active version name
44
31
button = page .get_by_role ("button" ).filter (has_text = "dev" )
You can’t perform that action at this time.
0 commit comments