Plugin Directory

Changeset 3426200


Ignore:
Timestamp:
12/23/2025 12:41:26 PM (2 months ago)
Author:
techlogica
Message:

Fix UI issues and icon sizing

Location:
adjust-accessibility/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • adjust-accessibility/trunk/adjust-accessibility.php

    r3425921 r3426200  
    44 * Plugin URI:
    55 * Description: Adds front-end accessibility controls: brightness, saturation, font size, line height, letter spacing, dark/light mode, and highlight links/titles.
    6  * Version:     1.0.1
     6 * Version:     1.0.2
    77 * Author:      Techlogica
    88 * Author URI:  https://techlogica.com
     
    9090     * Front-end main CSS (Tailwind compiled).
    9191     */
     92
     93
     94    // public function adjst_acsiblty_enqueue_styles() {
     95    //     $css_file = plugin_dir_path( __FILE__ ) . 'assets/css/accessibility.tailwind.css';
     96
     97    //     wp_enqueue_style(
     98    //         'adjst_acsiblty_front',
     99    //         plugin_dir_url( __FILE__ ) . 'assets/css/accessibility.tailwind.css',
     100    //         [],
     101    //         file_exists( $css_file ) ? filemtime( $css_file ) : '1.0.0'
     102    //     );
     103    // }
     104
     105
    92106    public function adjst_acsiblty_enqueue_styles() {
    93         $css_file = plugin_dir_path( __FILE__ ) . 'assets/css/accessibility.tailwind.css';
    94 
    95         wp_enqueue_style(
    96             'adjst_acsiblty_front',
    97             plugin_dir_url( __FILE__ ) . 'assets/css/accessibility.tailwind.css',
    98             [],
    99             file_exists( $css_file ) ? filemtime( $css_file ) : '1.0.0'
    100         );
    101     }
     107    $css_file = plugin_dir_path(__FILE__) . 'assets/css/accessibility.tailwind.css';
     108
     109    wp_enqueue_style(
     110        'adjst_acsiblty_front',
     111        plugin_dir_url(__FILE__) . 'assets/css/accessibility.tailwind.css',
     112        [],
     113        filemtime( $css_file )
     114    );
     115
     116    // ✅ INLINE CSS MUST BE HERE
     117    $primary = get_option( 'adjst_acsiblty_primary_color', '#0073aa' );
     118    wp_add_inline_style(
     119        'adjst_acsiblty_front',
     120        ":root { --aa-primary-color: " . esc_attr( $primary ) . "; }"
     121        );
     122    }
     123
    102124
    103125    /**
     
    125147        $primary = get_option( 'adjst_acsiblty_primary_color', '#0073aa' );
    126148
    127         wp_add_inline_style(
    128             'adjst_acsiblty_front',
    129             ':root { --aa-primary-color: ' . esc_attr( $primary ) . '; }'
    130         );
     149        // wp_add_inline_style(
     150        //     'adjst_acsiblty_front',
     151        //     ':root { --aa-primary-color: ' . esc_attr( $primary ) . '; }'
     152        // );
    131153
    132154        // Pass enabled features & device flags to JS; defaults if none saved.
  • adjust-accessibility/trunk/assets/css/accessibility.tailwind.css

    r3425921 r3426200  
    209209
    210210button#aa-toggle img{
    211     width:32px !important;
    212     height:32px !important;
    213     max-width:32px !important;
    214     max-height:32px !important;
     211    width:42px !important;
     212    height:42px !important;
     213    max-width:42px !important;
     214    max-height:42px !important;
    215215    transform:none !important;
    216216    margin:auto;
     
    230230    pointer-events:auto !important;
    231231}
     232
     233
     234/* FIX ICON SIZE */
     235button#aa-toggle img {
     236    width: 42px !important;
     237    height: 42px !important;
     238    max-width: 42px !important;
     239    max-height: 42px !important;
     240    transform: none !important;
     241}
  • adjust-accessibility/trunk/readme.txt

    r3425921 r3426200  
    44Requires at least: 4.5
    55Tested up to: 6.9
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.