Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webview-ui/src/components/chat/ChatRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ export const ChatRowContent = ({
return (
<>
<div style={headerStyle}>
<PocketKnife className="w-4" aria-label="Switch mode icon" />
<PocketKnife className="size-4" aria-label="Switch mode icon" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: To fully prevent flex layouts from shrinking the icon, consider adding Tailwind shrink-0 alongside size-4. This keeps the icon at 16px even under flexbox pressure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 (a11y): If the icon is decorative (adjacent text conveys the meaning), prefer aria-hidden="true" without an aria-label. If it is meaningful on its own, ensure the label is specific and not redundant.

<span style={{ fontWeight: "bold" }}>
{message.type === "ask" ? (
<>
Expand Down
Loading