text prompt / Write

Improve accessibility in a web component

Working, understandable code with assumptions, tests, and edge cases addressed.

WHY THIS SHAPEChatGPT

Clear roles, context, constraints, and an explicit output shape.

READY TO EDIT / CHATGPT
Act as an experienced coding partner.

Task: Improve accessibility in a web component.
Audience: [DESCRIBE THE AUDIENCE].
Context: [PASTE THE RELEVANT BACKGROUND, NOTES, OR SOURCE MATERIAL].
Constraints: [ADD LENGTH, TONE, DEADLINE, BUDGET, TOOLS, OR OTHER LIMITS].
Success looks like: working, understandable code with assumptions, tests, and edge cases addressed.

Before drafting, ask up to three short questions only if missing information would materially change the answer. Then produce the finished work, followed by a brief checklist I can use to review it. Use clear headings and specific language. Do not invent facts; mark any assumptions.
Replace every [BRACKETED FIELD] before pasting.