Skip to content

Commit

Permalink
refactor: remove no longer needed global keyframes declaration (#7715)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Aug 29, 2024
1 parent 5824618 commit 1a9fc33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
14 changes: 0 additions & 14 deletions packages/date-picker/theme/lumo/vaadin-month-calendar-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,3 @@ registerStyles(
`,
{ moduleId: 'lumo-month-calendar' },
);

const template = document.createElement('template');

template.innerHTML = `
<style>
@keyframes vaadin-date-picker-month-calendar-focus-date {
50% {
box-shadow: 0 0 0 var(--_focus-ring-width) transparent;
}
}
</style>
`;

document.head.appendChild(template.content);
20 changes: 0 additions & 20 deletions packages/progress-bar/theme/lumo/vaadin-progress-bar-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,23 +274,3 @@ registerStyles(
`,
{ moduleId: 'lumo-progress-bar' },
);

const template = document.createElement('template');

/* Safari fails to declare animations for pseudo elements inside a shadow DOM */
template.innerHTML = `
<style>
@keyframes vaadin-progress-pulse3 {
0% { opacity: 1; }
10% { opacity: 0; }
40% { opacity: 0; }
50% { opacity: 1; }
50.1% { opacity: 1; }
60% { opacity: 0; }
90% { opacity: 0; }
100% { opacity: 1; }
}
</style>
`;

document.head.appendChild(template.content);

0 comments on commit 1a9fc33

Please sign in to comment.