Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#UI

Advanced AI Prompt for Custom Focus Ring Logic in Radix UI Select

Customize the variables below to instantly engineer your prompt.

Required Variables

radix-select-custom-focus-rings.txt
Act as a UI Polish and Accessibility Engineer. Deeply customize the headless Radix UI Select component to implement a bespoke, highly branded focus strategy. Utilizing the [BRAND_COLORS] hex codes, design a complex [FOCUS_INDICATOR_TYPE] (e.g., an animated dashed border or a box-shadow glow) that strictly meets WCAG 2.1 non-text contrast mathematical requirements. Implement a [KEYBOARD_ONLY_LOGIC] solution where these focus rings are physically visible *only* when the user is navigating via the keyboard (utilizing ':focus-visible' polyfills combined with Radix's internal 'data-highlighted' attributes), remaining hidden during mouse clicks. Detail the exact CSS required to apply these styles to both the main Select Trigger and the individual SelectItems without the rings being clipped by parent 'overflow: hidden' properties.

Example Text Output

"The AI generates a CSS-in-JS solution that uses the data-highlighted attribute from Radix to apply custom brand-aligned focus states without breaking accessibility."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Custom Focus Ring Logic in Radix UI Select" prompt used for?

The AI generates a CSS-in-JS solution that uses the data-highlighted attribute from Radix to apply custom brand-aligned focus states without breaking accessibility.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.