Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: saving state of features upon reload #27

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

shameerrehman
Copy link
Contributor

… and text-spacing

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 23, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c2ba55
Status: ✅  Deploy successful!
Preview URL: https://44dbb8f0.astral-accessibility.pages.dev
Branch Preview URL: https://widget-state-save.astral-accessibility.pages.dev

View logs

Comment on lines +101 to +103
this.currentState,
"astralAccessibility_contrastState",
this.states.length,
Copy link
Member

Choose a reason for hiding this comment

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

I feel like first and last argument can be defined only in accessibility.component.ts, and we can make the second argument be defined as a class variable and have the parent read it as well. Hope that makes sense.

Read more on Template Method Design Pattern: https://refactoring.guru/design-patterns/template-method

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.

2 participants