Commit a0af17d
authored
♻️ REFACTOR: Reduce JS/CSS size and improve accessibility (#94)
Removes:
* semantic-ui assets
* unused 'sphinx_tabs_nowarn' sphinx option
Changes:
* tab structure to use tab roles
* tab label colour, to increase contrast with background
* assets are now copied across by sphinx rather than explicitly in the extension
Adds:
* tabindex atributes to allow users to focus and switch tabs using a keyboard (left and right arrows, and enter key to change)
* ARIA labels for tabs and panels
* ability to close tabs panel by clicking open tab
* persistence of last selected group or code tab during the session (when session storage is permitted)
* margin below images inside tab content1 parent 05ddd2c commit a0af17d
File tree
28 files changed
+1232
-1593
lines changed- docs
- sphinx_tabs
- semantic-ui-2.4.1
- static
- tests/test_build
28 files changed
+1232
-1593
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
79 | | - | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | | - | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
155 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
156 | 165 | | |
157 | | - | |
| 166 | + | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
| |||
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
175 | | - | |
176 | | - | |
| 184 | + | |
177 | 185 | | |
178 | 186 | | |
179 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments