wplemon / control-wcag-auto-textcolor
Text Color control for the free version of the Gridd theme. Addon for the Kirki framework (v4.0 API).
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 6
Language:JavaScript
Requires
- php: >=5.6
- kirki-framework/control-base: *
- kirki-framework/field: *
- kirki-framework/url-getter: *
- dev-master
- v0.5
- v0.4
- 0.3
- v0.2.1
- v0.2
- v0.1
- dev-dependabot/npm_and_yarn/minimist-1.2.8
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/ajv-6.12.6
This package is auto-updated.
Last update: 2024-12-04 08:43:56 UTC
README
Example:
new \WPLemon\Field\WCAGTextColor( [ 'settings' => 'my_setting', 'label' => esc_html__( 'My Color Control', 'textdomain' ), 'description' => esc_html__( 'A description here.', 'textdomain' ), 'section' => 'my_section', 'default' => '', 'transport' => 'postMessage', 'choices' => [ 'formComponent' => 'ChromePicker', 'backgroundColor' => 'test_accessible_textcolor_control_background', // setting-name or hardcoded color. 'textColor' => 'test_accessible_textcolor_control', // setting-name or hardcoded color. 'show' => [ 'auto' => false, 'recommended' => false, 'custom' => true, ], ], 'sanitize_callback' => 'sanitize_text_field', ] );