Skip to content

Commit

Permalink
fix: added autoprefixer comment to carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Sep 10, 2024
1 parent fb2ef25 commit 31ff6e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-elephants-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/skin": patch
---

fix: added autoprefixer ignore to carousel
2 changes: 2 additions & 0 deletions dist/carousel/carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ span.carousel__container {
[dir="rtl"] .carousel__control .icon--12 {
transform: rotate(180deg);
}
/* autoprefixer: ignore next */
@supports not /*!Y */
(
/*!Y */ (-webkit-scroll-snap-coordinate: 0 0) or /*!Y */
Expand All @@ -237,6 +238,7 @@ span.carousel__container {
opacity: 0.3;
}
}
/* autoprefixer: ignore next */
@supports (
/*!Y */ (-webkit-scroll-snap-coordinate: 0 0) or /*!Y */
(-ms-scroll-snap-coordinate: 0 0) or /*!Y */
Expand Down
6 changes: 4 additions & 2 deletions scripts/add-y-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ fs.readFile(carouselCSS, "utf8", function (err, data) {
const result = data
.replace(
/\@supports not (.|\n)+?\{/,
`@supports not /*!Y */
`/* autoprefixer: ignore next */
@supports not /*!Y */
(
/*!Y */ (-webkit-scroll-snap-coordinate: 0 0) or /*!Y */
(-ms-scroll-snap-coordinate: 0 0) or /*!Y */
Expand All @@ -20,7 +21,8 @@ fs.readFile(carouselCSS, "utf8", function (err, data) {
)
.replace(
/\@supports \((.|\n)+?\{/,
`@supports (
`/* autoprefixer: ignore next */
@supports (
/*!Y */ (-webkit-scroll-snap-coordinate: 0 0) or /*!Y */
(-ms-scroll-snap-coordinate: 0 0) or /*!Y */
(scroll-snap-coordinate: 0 0) or /*!Y */ (scroll-snap-align: start)
Expand Down

0 comments on commit 31ff6e6

Please sign in to comment.