appt-org / appt-website

Appt.org website built with Docusaurus
https://appt.org
MIT License
8 stars 5 forks source link

Fix color contrast issue in SwiftUI code snippets #64

Closed laylahoogeveen closed 1 week ago

laylahoogeveen commented 1 week ago

What does this PR do?

Change the colour for interpolated values in code blocks, so the text is visible in light mode. (https://github.com/appt-org/appt-website/issues/62)

How do you test this PR?

Test link: http://localhost:3000/en/docs/swiftui/samples/accessibility-value

I haven't found any other code samples with an interpolation value, so I'm afraid we can only test the updated css with this doc. The text is rendered black on a white surface (light theme) and white on a black surface (dark theme), so I'm pretty sure this won't cause any problems whatsoever.

Test steps:

Checklist

Accessibility checklist

laylahoogeveen commented 1 week ago

Closed because I accidentally started this branch from the main branch, resulting in incorrect diffs with develop