appt-org / appt-website

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

Fix color contrast issue in SwiftUI code snippets #65

Closed laylahoogeveen closed 2 months ago

laylahoogeveen commented 2 months 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