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

Audits: Add a report on unused or undefined custom properties. #58

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

ryelle
Copy link
Collaborator

@ryelle ryelle commented Oct 21, 2021

⚠️ Don't merge ⚠️ This is just for use while working on ryelle/wordpress-develop#2

Try adding a report to identify custom properties that are defined but not used, and properties that are used but never defined.

Right now the output is:

Custom Properties audit

Defined but unused custom properties

--wp-admin--admin-bar--height
--wp-admin--theme--primary--step-10
--wp-admin--input--border
--wp-admin--input--border--focus
--wp-admin--input--background
--wp-admin--input--background--readonly
--wp-admin--checkbox--fill
--wp-admin--tabs-panel-active--box-shadow-from--focus
--wp-admin--tabs-panel-active--box-shadow-to--focus

Undefined custom properties

--wp-admin-theme-color
--wp-admin--admin-menu--icon--color--highlight
--wp-admin--tabs-panel-active--box-shadow--focus
--wp-admin--surface--border-2
--wp-admin--surface--background--alternate
--wp-admin--media-widget-preview--video--background

@ryelle ryelle self-assigned this Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant