-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove title from <iframe /> container #243
base: main
Are you sure you want to change the base?
Conversation
On Firefox, a tooltip appears when hovering clickable elements inside the iframe with the "title" attribute of the iframe. Hovering over the an action button "Submit", for example, would show "Embedded Portal Content", which was distracting. Removing the title should solve the issue. On Chrome, this tooltip was visible only when hovering the edges of the iframe, not the content itself.
WalkthroughThe pull request involves removing the Changes
Potential Accessibility ImpactWhile not part of the original instructions, it's worth noting that removing the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
💤 Files with no reviewable changes (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Overview
On Firefox, a tooltip appears when hovering clickable elements inside the iframe with the "title" attribute of the iframe. Hovering over the an action button "Submit", for example, would show "Embedded Portal Content", which was distracting. Removing the title should solve the issue.
On Chrome, this tooltip was visible only when hovering the edges of the iframe, not the content itself.
Screenshot of the issue
Please explain how to summarize this PR for the Changelog:
A fix that removes the title tooltip of Flatfile's iframe, that was causing a tooltip "Embedded Portal Contents" to appear in some browsers (affected mainly Firefox)
Tell code reviewer how and what to test:
Workaround
We are currently using a
useFlatfileIframeTitleRemover
React hook, that observes DOM changes for the iframe being injected, and remove it's title attribute if necessary.