=== AddonLogic Focus Outline Enhancer ===
Contributors: snehalpancholi
Tags: accessibility, focus, keyboard, wcag, outline
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a strong, visible focus outline for keyboard users without affecting mouse users. Fully configurable colour, width, style, and offset.

== Description ==

AddonLogic Focus Outline Enhancer solves one of the most common accessibility failures: invisible or removed focus indicators. Many themes suppress the browser default outline (`outline: none`) with no replacement, leaving keyboard users unable to track their position on the page.

This plugin injects a configurable `:focus-visible` CSS rule that restores a high-visibility outline exclusively for keyboard navigation. Mouse clicks do not trigger the outline.

**Features:**

* Uses CSS `:focus-visible` — the modern standard for keyboard-only focus indicators
* Legacy browser fallback: JavaScript class-based approach for browsers that don't support `:focus-visible`
* Configurable outline colour, width (px), style (solid/dashed/dotted/double), offset, and border-radius
* Configurable CSS selector (default `*` for all elements, or narrow to `a, button, input, etc.`)
* Option to suppress existing browser default outlines
* Lightweight: one `<style>` block and optional 20-line inline script

== Installation ==

1. Upload the `focus-outline-enhancer` folder to `/wp-content/plugins/`
2. Activate via **Plugins** in the WordPress admin
3. Go to **Settings → Focus Outline** to configure

== Frequently Asked Questions ==

= Will this conflict with my theme's CSS? =
The plugin injects styles in the `<head>` at priority 99, after most theme styles. If your theme overrides outlines inline or with high specificity, you may need to use a more specific CSS selector in the settings.

= Is :focus-visible supported everywhere? =
Yes, in all modern browsers. The JavaScript class fallback covers older browsers that only support `:focus`, hiding the outline after any mouse click and restoring it on Tab key press.

== Changelog ==

= 1.0.0 =
* Initial release
