Skip to content

Add accessibility package and isEnabled function - #180

Merged
jtmcg merged 4 commits into
accessible-colorsfrom
jtmcg/accessibility-isEnabled
Feb 7, 2025
Merged

jtmcg merged 4 commits into
accessible-colorsfrom
jtmcg/accessibility-isEnabled

Conversation

@jtmcg

@jtmcg jtmcg commented Feb 7, 2025 •

Copy link
Copy Markdown
Contributor

Changes

  • Moved duplicated stubConfig() function to util
  • Added accessibility package and IsEnabled() function

Testing

This isn't wired up to anything yet, so unless its wired up to its own binary it is just covered by the unit tests. I think this is fine given we're merging into a feature branch right now.

@andyfeller andyfeller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color me impressed with how quick you got this up 😮 Handful of minor things I suspect are quick to knock out.

Comment thread pkg/accessibility/accessibility.go Resolved
Comment thread pkg/accessibility/accessibility.go Resolved
Comment thread pkg/accessibility/accessibility_test.go Resolved
Comment thread pkg/accessibility/accessibility_test.go Resolved
Comment thread internal/testutils/config_stub.go Resolved
Comment thread pkg/repository/repository_test.go Resolved
@jtmcg
jtmcg force-pushed the jtmcg/accessibility-isEnabled branch from 9ca7222 to 794568b Compare February 7, 2025 16:21

@andyfeller andyfeller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👨‍🍳 💋

@jtmcg
jtmcg merged commit a5c6b5e into accessible-colors Feb 7, 2025
@jtmcg
jtmcg deleted the jtmcg/accessibility-isEnabled branch February 7, 2025 18:03
// accessibility features. If the value is empty, "0", or "false", the accessibility
// features are disabled. Any other value enables the accessibility features. Note that
// this environment variable supercedes the configuration file's accessible setting.
const ACCESSIBILITY_ENV = "ACCESSIBILE"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is spelt incorrectly. "ACCESSIBILE" -> "ACCESSIBLE"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants