Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix html-preview-link in new file UI #6503

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Fix html-preview-link in new file UI #6503

merged 1 commit into from
Apr 12, 2023

Conversation

@kidonng kidonng added the bug label Apr 12, 2023
className="btn btn-sm BtnGroup-item rgh-html-preview-link"
className="btn btn-sm BtnGroup-item"
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -25,7 +25,7 @@ function add(rawButton: HTMLAnchorElement): void {
}

function init(signal: AbortSignal): void {
observe('a#raw-url', add, {signal});
observe('a:is(#raw-url, [data-testid="raw-button"])', add, {signal});
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if this "testid" thing will persist, good enough for now

Copy link
Member

Choose a reason for hiding this comment

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

Reportedly that attribute is static because it's used in E2E tests. But you never know. Good enough for now

@kidonng kidonng merged commit b6071f8 into main Apr 12, 2023
10 checks passed
@kidonng kidonng deleted the html-preview-link branch April 12, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

html-preview-link missing from new file UI
2 participants