-
Notifications
You must be signed in to change notification settings - Fork 106
fix(clipboard): #1981
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(clipboard): #1981
Conversation
🦋 Changeset detectedLatest commit: d7b12c5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for patternfly-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
🏮 Lighthouse report for the changes in this PR:🔴 🟢 🟢 🟠 ⚪️ https://deploy-preview-1981--patternfly-elements.netlify.app/kitchen-sink/🔦 Lighthouse Report for https://deploy-preview-1981--patternfly-elements.netlify.app/kitchen-sink/
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Styles🔦 Lighthouse Report for Styles
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Accordion🔦 Lighthouse Report for Accordion
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Autocomplete🔦 Lighthouse Report for Autocomplete
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Avatar🔦 Lighthouse Report for Avatar
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Badge🔦 Lighthouse Report for Badge
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Band🔦 Lighthouse Report for Band
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Button🔦 Lighthouse Report for Button
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Card🔦 Lighthouse Report for Card
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Clipboard🔦 Lighthouse Report for Clipboard
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Codeblock🔦 Lighthouse Report for Codeblock
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Collapse🔦 Lighthouse Report for Collapse
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Cta🔦 Lighthouse Report for Cta
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Datetime🔦 Lighthouse Report for Datetime
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Dropdown🔦 Lighthouse Report for Dropdown
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Health Index🔦 Lighthouse Report for Health Index
💥 Assertion Failures
🔴 🟢 🟠 🟢 ⚪️ Icon🔦 Lighthouse Report for Icon
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Icon Panel🔦 Lighthouse Report for Icon Panel
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Jump Links🔦 Lighthouse Report for Jump Links
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Label🔦 Lighthouse Report for Label
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Markdown🔦 Lighthouse Report for Markdown
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Modal🔦 Lighthouse Report for Modal
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Number🔦 Lighthouse Report for Number
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Page Status🔦 Lighthouse Report for Page Status
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Primary Detail🔦 Lighthouse Report for Primary Detail
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Progress Indicator🔦 Lighthouse Report for Progress Indicator
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Progress Steps🔦 Lighthouse Report for Progress Steps
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Readtime🔦 Lighthouse Report for Readtime
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Select🔦 Lighthouse Report for Select
💥 Assertion Failures
🟠 🟢 🟢 🟢 ⚪️ Tabs🔦 Lighthouse Report for Tabs
💥 Assertion Failures
🟢 🟢 🟢 🟢 ⚪️ Toast🔦 Lighthouse Report for Toast
💥 Assertion Failures
|
|
Logging Gophers Take Mopeds! (looks good to me) |
bennypowers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small changes please, otherwise LGTM
|
@aditiohri to keep you in the loop after we had a chance to review this PR, we decided to make some adjustments. The intention of this component, which was also a mistake on my first attempt, was that the component should always failover to The other big change was the removal of the Other smaller changes amounted to some cleanup on decorators that were extraneous. Please let me know if you have any questions about those changes and I can review them with you. Thank you for your help we appreciate it. |
heyMP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's Go Thursday Managers 👍
Pull request description
tldr;
If the site is not secure, and the clipboard fallback cannot be used, an error is thrown and the element is hidden for all users.
Related issues
#1868 - [pfe-clipboard] If site isn't HTTPS copy functionality will not work.
#1873 - bug: pfe-clipboard does not have an accessible experience
Preview
What has changed and why
_secure, to check forwindow.isSecureContextvalue_setCopyTypefunction that setscopyTypeproperty depending on the value of_securecopyTypeincopyTextToClipboardTesting instructions
_securetofalseBrowser requirements
Your component should work in all of the following environments:
Ready-for-merge Checklist
Merging
Please squash when merging and ensure your commit message uses conventional commit formatting.
Be sure to share your updates with the patternfly-elements-contribute@redhat.com mailing list!