Commit a619dfa
authored
Fix diff colours in docs (#612)
#582 upgraded Furo,
along with it's new accessible-pygments dependency
(pradyunsg/furo@be0072d).
Unfortunately, accessible-pygments doesn't support the `diff` code block
and is missing some CSS
(Quansight-Labs/accessible-pygments#31), so
diffs look like:
<img width="756" height="230" alt="image"
src="https://github.com/user-attachments/assets/96eb6002-f162-4128-8920-fdc8be8c96d5"
/>
<img width="746" height="224" alt="image"
src="https://github.com/user-attachments/assets/ef9bc771-ba58-49f9-899a-12564959945c"
/>
https://django-upgrade.readthedocs.io/en/latest/fixers.html#django-4-2
Instead, set our own colours:
<img width="748" height="227" alt="image"
src="https://github.com/user-attachments/assets/fa5e1855-dcdf-44c0-9083-d048eb866896"
/>
<img width="752" height="232" alt="image"
src="https://github.com/user-attachments/assets/5c57febb-4b3a-45fe-8ce8-93e45b96ea24"
/>
I've confirmed these all exceed the WCAG AA min ratio.1 parent 348eda4 commit a619dfa
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments