Skip to content

Use VSCodeBadge instead of custom styled component#3462

Merged
shati-patel merged 1 commit intomainfrom
shati-patel/vscode-badge
Mar 13, 2024
Merged

Use VSCodeBadge instead of custom styled component#3462
shati-patel merged 1 commit intomainfrom
shati-patel/vscode-badge

Conversation

@shati-patel
Copy link
Copy Markdown
Contributor

Changes a few buttons in the model editor to use the VSCodeBadge component from the webview UI toolkit. Follow-up from #3441 (comment).

Before:
image

After:
image

Checklist

N/A: the usages button has just changed a tiny amount, and the model alerts button is feature-flagged

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

Comment on lines +36 to +37
role="button"
aria-label="Model alerts"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added this to make the tests pass and to make the button accessible 🤔 Not sure if this is the "normal" way of doing things? 🤷🏽

@shati-patel shati-patel marked this pull request as ready for review March 12, 2024 15:31
@shati-patel shati-patel requested a review from a team as a code owner March 12, 2024 15:31
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

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

🎉

@shati-patel shati-patel merged commit 3005dac into main Mar 13, 2024
@shati-patel shati-patel deleted the shati-patel/vscode-badge branch March 13, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants