Skip to content

Commit

Permalink
Merge branch 'stage' of github.com:adobecom/milo into MWPW-161355
Browse files Browse the repository at this point in the history
  • Loading branch information
yesil committed Nov 8, 2024
2 parents 88d263e + df454db commit cf93529
Show file tree
Hide file tree
Showing 31 changed files with 720 additions and 211 deletions.
4 changes: 3 additions & 1 deletion libs/blocks/caas-config/caas-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,15 @@ const getPanels = (tagsData) => [
];

/* c8 ignore next 15 */
const addIdOverlays = () => {
export const addIdOverlays = () => {
document.querySelectorAll('.consonant-Card').forEach((card) => {
if (!card.querySelector('.cardid')) {
const idBtn = document.createElement('button');
idBtn.classList.add('cardid');
idBtn.innerText = card.id;

idBtn.title = 'Click to copy this ID';

idBtn.addEventListener('click', (e) => {
const id = e.target.textContent;
navigator.clipboard?.writeText(id);
Expand Down
Loading

0 comments on commit cf93529

Please sign in to comment.