Commit Graph

3713 Commits

Author SHA1 Message Date
James Fenn
dcecc266fd [UwU] Fix code block contrast & tabindex issues (#746)
- Removes the `opacity: 0.5;` styling for non-highlighted parts of code
blocks
  * Instead, highlighted sections are bold + bordered
  * #739
- Fixes other code block styling issues (highlighted lines not expanding
to the full code block width when scrollable)
- #738
* Adds a rehype transform to add `tabindex="0"` on any
`div.code-container`
* Adds a script that sets `tabindex="0"` only if the
`div.code-container` is horizontally scrollable
2023-10-01 21:19:19 -04:00
James Fenn
2afcf39090 [UwU] Various accessibility fixes (#745)
Fixes most of the smaller a11y issues that could fit in a single PR:

- Clarify the "toggle dark mode" button label (#735)
- Fix `<li>` elements missing from the related posts list (#737)
- Adds the "Post tags" label missing from the search section tag list
(#740)
- Move focus to the search filter heading button when the "Clear" button
is pressed (#742)
- Describe search filter post counts with an aria-label (#743)
- Use aria-live `polite` instead of `assertive` on the search status
message (#744)
2023-10-01 21:18:21 -04:00
James Fenn
253fcb823c increase dashed border size around code highlights 2023-10-01 20:41:02 -04:00
James Fenn
6688d7d958 fix twoslash rehype-transform checking for .class when it should be looking for .className 2023-10-01 20:38:23 -04:00
James Fenn
25e74c2ad6 increase negative margin on search sidebar to avoid clipping new focus states 2023-10-01 18:16:11 -04:00
James Fenn
f89ae44bc0 fix #736 - implement button outlines to correctly add the outline-offset in specs 2023-10-01 18:06:42 -04:00
James Fenn
e3f849ed4c remove a duplicate semicolon typo 2023-10-01 16:46:16 -04:00
James Fenn
4d00ec3bd0 fix #738 - make twoslash code blocks tabbable, remove if they can't be scrolled horizontally 2023-10-01 16:39:55 -04:00
James Fenn
e5a76b4c24 fix #739 - use bold + border to display code highlights in place of dimmed half-opacity 2023-10-01 16:24:25 -04:00
James Fenn
ab5c2f8945 fix tsc errors on ref value 2023-10-01 15:45:09 -04:00
James Fenn
4611345cdb fix #744 - use aria-live="polite" instead of assertive for search status 2023-10-01 15:39:17 -04:00
James Fenn
8f97997826 fix #743 - describe filter post counts with an aria-label 2023-10-01 15:34:33 -04:00
James Fenn
056692832d fix #742 - focus on filter button when the clear button is removed after clearing 2023-10-01 15:21:46 -04:00
James Fenn
018594c49d fix #740 - add the same "Post tags" label to the search section tag list 2023-10-01 14:37:35 -04:00
James Fenn
b07eac8c24 fix #737 - add <li> elements inside related posts list 2023-10-01 14:29:39 -04:00
James Fenn
b2d612ff5e fix #735 - clearer toggle dark mode button label 2023-10-01 14:27:10 -04:00
James Fenn
9afde1caad [UwU] Set scrollbar track background to transparent (#734)
This fixes situations where scrollbars are displayed on a container with
a different background color and look out of place:


![2023-09-28-211840_909x192_scrot](https://github.com/unicorn-utterances/unicorn-utterances/assets/13000407/3d10ffe0-e2ff-4ec4-8475-cf815fb5bb2d)

Result:

![2023-09-28-212005_906x167_scrot](https://github.com/unicorn-utterances/unicorn-utterances/assets/13000407/4c6a5f97-06b6-48d5-adeb-766e850cdcf3)

Tested on Chrome & Firefox; might need testing on Safari.
2023-09-30 15:51:23 -04:00
James Fenn
d81e71bb15 remove github copilot tag image 2023-09-30 15:51:06 -04:00
James Fenn
9a675c046c fix various tags & add warning logs when a tag is not defined 2023-09-30 13:01:16 -04:00
James Fenn
d1ea967cb6 add remaining logo licenses/attributions 2023-09-29 21:42:09 -04:00
James Fenn
1339ee3a0f fix text colors not adapting to theme & various tsc issues 2023-09-29 20:51:20 -04:00
James Fenn
a38e23a985 fix sponsor image sizing/margins 2023-09-29 16:33:04 -04:00
James Fenn
0cbda6e547 replace get-stickers script usage with tags json 2023-09-29 15:25:51 -04:00
James Fenn
68a6dab8c7 add contact email for licensing/copyright 2023-09-29 14:14:35 -04:00
James Fenn
2304a48434 fix C# attribution 2023-09-29 12:53:36 -04:00
James Fenn
8ad53055ea change license modal layout to match the cool figma design 2023-09-29 12:36:20 -04:00
James Fenn
849799c592 set scrollbar track backgrounds to transparent 2023-09-28 21:17:57 -04:00
James Fenn
eaf5cf722e fix dialog scrolling / code block overflow 2023-09-28 19:24:48 -04:00
James Fenn
b0a5d216f1 [UwU] Update theme-color meta tag value (#730)
- Updates the `theme-color` to the new color values
- Adds behavior to set the `theme-color` from CSS var (via
`getComputedStyle`) when the theme is changed/loaded.
- Also removes some leftover disqus configs I found in the process
2023-09-28 18:11:32 -04:00
James Fenn
97eb7dd3e7 hardcode theme-color values, apply in blocking script to prevent loading flicker 2023-09-28 16:52:29 -04:00
James Fenn
4bc7863a66 begin adding tag image licenses/attribution 2023-09-28 16:37:23 -04:00
James Fenn
3ad39c639e add hover click behavior & container styling 2023-09-28 11:37:01 -04:00
James Fenn
f39ba7fc8f fix modal content text color on dark theme 2023-09-27 23:41:07 -04:00
James Fenn
bfba95c27c improve license focus styling 2023-09-27 23:37:16 -04:00
James Fenn
6116decfb2 fix styling issues, allow dismissing by clicking outside the dialog 2023-09-27 23:28:08 -04:00
James Fenn
bbfc2d0205 add license modal for additional attribution text (WIP) 2023-09-27 23:04:45 -04:00
Corbin Crutchley
4a9c051daf Angular constructor error blog post (#731) 2023-09-27 17:13:02 -07:00
Corbin Crutchley
c47afe25d4 docs: add github issue 2023-09-27 17:08:33 -07:00
Corbin Crutchley
b0f5f79972 docs: add final aspect 2023-09-27 16:52:32 -07:00
Corbin Crutchley
9f1906e825 docs: add react prior art 2023-09-27 16:47:13 -07:00
Corbin Crutchley
43f32c8748 docs: further work on article 2023-09-27 16:39:58 -07:00
James Fenn
e0eb4652d4 update theme-color meta tag value 2023-09-27 19:12:51 -04:00
Corbin Crutchley
ea4328ef72 docs: generate outline for article 2023-09-27 16:12:44 -07:00
James Fenn
fbcbeb4615 remove unused i18n value 2023-09-27 18:05:56 -04:00
James Fenn
131085ff11 [UwU] Redesigned translations component (#727)
Implements the page translations component
2023-09-27 14:49:44 -04:00
James Fenn
b0d44c6fbc replace some inline role/sticker svgs with separate files 2023-09-27 14:34:17 -04:00
James Fenn
6f13e7ca93 add 33% gradient midpoint, prevent unicorn data from being mutated by .sort 2023-09-27 14:03:35 -04:00
James Fenn
cab63ce5c3 fix translations link text style to use bold font 2023-09-27 13:47:32 -04:00
James Fenn
c2c3127b55 fix tsc error 2023-09-27 13:20:21 -04:00
James Fenn
90f328134d Update MC wiki links to point to "minecraft.wiki" (#728)
As per https://minecraft.wiki/w/Minecraft_Wiki:Moving_from_Fandom; the
previous links are no longer maintained.
2023-09-27 13:17:41 -04:00