AXON-1675: Right-align toggle buttons in Rovo Dev preference menu - (Rovo Dev)#1414
Conversation
|
Thank you for your submission! Like many open source projects, we ask that you sign our CLA (Contributor License Agreement) before we can accept your contribution. Already signed the CLA? To re-check, try refreshing the page. |
| <p style={{ fontSize: '11px' }}>{description}</p> | ||
| <div style={{ display: 'flex', alignItems: 'flex-start', gap: '8px', flex: '1' }}> | ||
| <div className="prompt-settings-logo">{icon}</div> | ||
| <div id="prompt-settings-context" style={{ flex: '1' }}> |
There was a problem hiding this comment.
🔥 Code Bugs
Remove the id attribute as multiple PromptSettingsItem components render simultaneously, creating duplicate IDs in the DOM which violates HTML standards.
Details
📖 Explanation: The PromptSettingsItem component is rendered multiple times in the popup (for Plan, Full-Context mode, and YOLO settings), but each instance uses the same id="prompt-settings-context". This creates multiple DOM elements with identical IDs, which is invalid HTML and can cause issues with accessibility tools and JavaScript selectors.
| <div id="prompt-settings-context" style={{ flex: '1' }}> | |
| <div style={{ flex: '1' }}> |
No description provided.