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

All CSSHelp methods need documentation #539

Open
ilenia-magoni opened this issue Jan 14, 2025 · 2 comments · May be fixed by #544
Open

All CSSHelp methods need documentation #539

ilenia-magoni opened this issue Jan 14, 2025 · 2 comments · May be fixed by #544
Assignees

Comments

@ilenia-magoni
Copy link
Contributor

ilenia-magoni commented Jan 14, 2025

From https://github.com/freeCodeCamp/curriculum-helpers/blob/main/lib/__tests__/css-helper.test.ts

I have resorted to consulting the test file to find out which methods to use, most of these don't have documentation:

  • getStyle
  • getStyleAny
  • isPropertyUsed
  • isDeclaredAfter
  • getPropertyValue
  • getCSSRules
  • getRuleListsWithinMedia
  • selectorsFromSelector

There are some docs in the curriculum-helpers repo, but all documentation should go in https://github.com/freeCodeCamp/contribute

@ilenia-magoni ilenia-magoni transferred this issue from freeCodeCamp/freeCodeCamp Jan 14, 2025
@a2937 a2937 self-assigned this Jan 15, 2025
@a2937
Copy link
Member

a2937 commented Jan 15, 2025

The .getPropertyValue method is explained in the regular MDN Docs. Do I need to add some additional documentation about it on our pages?

@a2937 a2937 linked a pull request Jan 15, 2025 that will close this issue
2 tasks
@ilenia-magoni
Copy link
Contributor Author

@a2937 I guess only mention that it is a native method that can be used on the output of getStyle

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 a pull request may close this issue.

2 participants