Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
eba2105
new yt block
Dec 10, 2025
124ec62
new yt block
Dec 10, 2025
e9f164c
new yt block
Dec 10, 2025
c96f3e6
new yt block
Dec 10, 2025
1517f35
new yt block
Dec 10, 2025
c851c85
new yt block
Dec 10, 2025
3a58f1d
Authorable row count per viewport
Dec 10, 2025
df4f681
Personalised Edit template button for ios
hkuraware Dec 10, 2025
ed65d1d
new yt block
Dec 10, 2025
77c1110
new yt block
Dec 10, 2025
1fadfa3
new yt block
Dec 10, 2025
aae2920
Free tag
Dec 10, 2025
e6dd82e
new yt block
Dec 10, 2025
1b8bdb3
new yt block
Dec 10, 2025
2486802
new yt block
Dec 11, 2025
45de36d
new yt block
Dec 11, 2025
25eff38
new yt block
Dec 11, 2025
605a9e5
new yt block
Dec 11, 2025
95435a8
Free tag authorable and is free check
Dec 11, 2025
6fca581
free null check
Dec 11, 2025
b0d6c26
Updated icons and added close icon for mobile
hkuraware Dec 11, 2025
e0d3edc
new yt block
Dec 11, 2025
762778f
new yt block
Dec 11, 2025
c234919
new yt block
Dec 12, 2025
9d37384
new yt block
Dec 12, 2025
e94b5ae
Fixed close card button click event
hkuraware Dec 12, 2025
1faa0d1
Added accessibilty for yt cards
hkhatana26 Dec 12, 2025
65c06a2
Refactored code and resolved merge conflict
hkuraware Dec 12, 2025
1b733f6
new yt block
Dec 12, 2025
001fb5d
new yt block
Dec 15, 2025
8f0a143
new yt block
Dec 15, 2025
8a825b4
new yt block
Dec 16, 2025
7b3c200
new yt block
Dec 16, 2025
a2f0d04
new yt block
Dec 16, 2025
912ffeb
accessibilty changes for desktop
hkhatana26 Dec 16, 2025
cfd5948
fixed video restart on tab
hkhatana26 Dec 17, 2025
563e7de
Merge branch 'stage' into pre-yt
nkthakur48 Dec 17, 2025
64c338a
changes for tablet veiw is fixed
hkhatana26 Dec 17, 2025
c44e21c
Fixed rtl issue for icons
hkuraware Dec 17, 2025
a57f457
new yt block
Dec 18, 2025
b7088ed
new yt block
Dec 18, 2025
f7feee2
new yt block
Dec 18, 2025
3be987c
new yt block
Dec 18, 2025
7dee86b
new yt block
Dec 18, 2025
2c5409a
Fixed no-multiple-empty-lines eslint issue
hkuraware Dec 18, 2025
f11e683
changes for voice over on card
hkhatana26 Dec 18, 2025
7910e7c
voiceover changes for overlay is fixed
hkhatana26 Dec 18, 2025
1e5307d
Support both Akamai Proxy and Stock API based on query param
nkthakur48 Dec 18, 2025
22b60ca
Fixed linting issue
nkthakur48 Dec 18, 2025
5112091
MWPW-183578 PrM x YT gallery (#849)
suhjainadobe Dec 18, 2025
e5333ea
new yt block
Dec 18, 2025
3ec1271
new yt block
Dec 18, 2025
b9cccaa
new yt block
Dec 18, 2025
6c329de
new yt block
Dec 19, 2025
6294161
new yt block
Dec 19, 2025
5cd6540
new yt block
Dec 19, 2025
84f5d4e
MWPW-185518: Fixed tab functionality in firefox
hkuraware Dec 31, 2025
055c57c
bug fixes for tab and video functionality
hkhatana26 Dec 31, 2025
03def71
free tag z-index
Jan 5, 2026
592c3a2
general formatting
Jan 5, 2026
406d50c
general formatting
Jan 5, 2026
cc62cf1
general formatting
Jan 5, 2026
b75d41b
MWPW-185625: Fixed shift tab in info button
hkuraware Jan 5, 2026
416ef68
stock api config
Jan 5, 2026
c7b8683
stock api config
Jan 6, 2026
222e1ed
stock api config
Jan 6, 2026
ccc3b99
stock api config
Jan 6, 2026
313a487
stock api config
Jan 6, 2026
9a84c06
Fixed shift tab in desktop and reverted voiceover changes
hkuraware Jan 6, 2026
9528c3e
Merge pull request #851 from adobecom/pre-yt
suhjainadobe Jan 6, 2026
3050ad3
Merge branch 'main' into stage
nkthakur48 Jan 6, 2026
73c586b
accessibility resolution
Jan 7, 2026
53efb8f
accessibility resolution
Jan 8, 2026
1e34488
accessibility resolution
Jan 8, 2026
2ac8ffd
accessibility resolution
Jan 11, 2026
addd3af
info aria-hidden
Jan 12, 2026
a69d49b
info aria-hidden
Jan 12, 2026
cb6a9b3
Merge pull request #854 from suhjainadobe/prm-yt-gallery
sigadamvenkata Jan 12, 2026
76e2795
MWPW-183549 Fixed username cut off text at 320px (#855)
hkuraware Jan 13, 2026
74d0af9
Merge branch 'main' into stage
nkthakur48 Jan 13, 2026
1a00105
Added new line character at end of prm-yt-gallery.js
nkthakur48 Jan 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions creativecloud/blocks/firefly-gallery/firefly-gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@
.firefly-gallery-user-info {
display: flex;
align-items: center;
gap: var(--spacing-xs);
max-width: calc(100% - var(--spacing-m));
align-self: flex-start;
}

Expand All @@ -334,6 +332,7 @@
border-radius: var(--border-radius-round);
object-fit: cover;
border: 1px solid rgb(255 255 255 / 50%);
margin-inline-end: 4px;
flex-shrink: 0;
}

Expand Down
213 changes: 88 additions & 125 deletions creativecloud/blocks/prm-yt-gallery/prm-yt-gallery.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
/* CSS Variables - only for values reused more than twice */
.prm-yt-gallery {
/* Responsive styling with mobile-first approach */
:root {
--color-white: #fff;
--transition-default: 0.2s ease-out;
--control-width: 31.35px;
--control-height: 22px;
--card-offset: -55px;
--grid-columns: 2;
--grid-card-width: 143px;
--grid-column-gap: 16px;
--grid-row-gap: 15px;
--grid-padding-block: 90px 80px;
--grid-padding-inline: 20px;
--card-border-radius: 18px;
--card-scale: 1.161;
--button-bottom: 40px;
--button-bottom-info-visible: 19px;
--button-padding: 8px 14px;
--button-border-radius: 16px;
--button-font-size: 12px;
--button-line-height: 15px;
--button-max-width-offset: 50px;
--button-display: block;
--free-tag-height: 13px;
--free-tag-font-size: 7px;
--free-tag-padding: 1px 5px 2px;
--free-tag-border-radius: 2px;
--info-button-left: 14px;
--info-button-right: unset;
--close-card-button-display: flex;
--info-overlay-padding: 45px 26px;
--overlay-text-font-size: 18px;
}

/* ====================
Base Layout
==================== */

.prm-yt-gallery {
display: flex;
justify-content: center;
Expand All @@ -19,18 +40,14 @@

.pre-yt-grid {
display: grid;
grid-template-columns: repeat(2, minmax(min-content, 143px));
column-gap: 16px;
row-gap: 15px;
grid-template-columns: repeat(var(--grid-columns), minmax(min-content, var(--grid-card-width)));
column-gap: var(--grid-column-gap);
row-gap: var(--grid-row-gap);
padding: 90px 20px 80px;
max-width: calc((143px * 2) + 16px + 40px);
max-width: calc((var(--grid-card-width) * var(--grid-columns)) + (var(--grid-column-gap) * (var(--grid-columns) - 1)) + (var(--grid-padding-inline) * 2));
margin: 0 auto;
}

/* ====================
Card Structure
==================== */

.pre-yt-card {
width: 100%;
aspect-ratio: 1 / 1.76;
Expand All @@ -41,7 +58,7 @@
.pre-yt-card-inner {
width: 100%;
height: 100%;
border-radius: 18px;
border-radius: var(--card-border-radius);
overflow: hidden;
position: absolute;
top: 0;
Expand All @@ -56,10 +73,6 @@
transform: translateY(var(--card-offset));
}

/* ====================
Card Content Wrappers
==================== */

.pre-yt-card-inner .image-wrapper {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -90,12 +103,9 @@
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
}

/* ====================
Free Tag Badge
==================== */

.pre-yt-card .pre-yt-free-tag {
display: flex;
position: absolute;
Expand All @@ -106,49 +116,50 @@
box-sizing: border-box;
font-weight: 400;
line-height: 1.5em;
height: 13.58px;
font-size: 7.23px;
padding: 1.03px 5.17px 1.55px;
border-start-start-radius: 2.07px;
border-end-start-radius: 2.07px;
height: var(--free-tag-height);
font-size: var(--free-tag-font-size);
padding: var(--free-tag-padding);
border-start-start-radius: var(--free-tag-border-radius);
border-end-start-radius: var(--free-tag-border-radius);
z-index: 4;
}

/* ====================
Interactive Elements - Buttons
==================== */

.pre-yt-card-inner .pre-yt-button {
position: absolute;
bottom: 40px;
bottom: var(--button-bottom);
left: 50%;
transform: translateX(-50%);
padding: 8px 14px;
border-radius: 16px;
padding: var(--button-padding);
border-radius: var(--button-border-radius);
border: 2px solid var(--color-white);
background: var(--color-white);
color: #2C2C2C;
font-size: 12px;
font-size: var(--button-font-size);
font-weight: 700;
text-decoration: none;
white-space: nowrap;
line-height: 15px;
line-height: var(--button-line-height);
z-index: 2;
max-width: calc(100% - 50px);
max-width: calc(100% - var(--button-max-width-offset));
overflow: hidden;
text-overflow: ellipsis;
opacity: 0;
transition: opacity var(--transition-default);
display: var(--button-display);
}

.pre-yt-card-inner .pre-yt-button wbr {
display: none;
}

.pre-yt-card.expanded.info-visible .pre-yt-card-inner .pre-yt-button {
bottom: 19px;
bottom: var(--button-bottom-info-visible);
}

.pre-yt-card-inner .pre-yt-info-button {
position: absolute;
inset-inline-start: 13.9px;
top: 11.227px;
inset-inline-start: var(--info-button-left);
inset-inline-end: var(--info-button-right);
top: 11px;
width: var(--control-width);
height: var(--control-height);
padding: 0;
Expand All @@ -161,7 +172,6 @@
justify-content: center;
z-index: 2;
opacity: 0;
transition: opacity var(--transition-default);
}

.pre-yt-card-inner .pre-yt-close-card-button {
Expand All @@ -175,16 +185,12 @@
background: #f3f3f3;
border-radius: 11px;
cursor: pointer;
display: flex;
display: var(--close-card-button-display);
align-items: center;
justify-content: center;
z-index: 4;
}

/* ====================
Info Overlay
==================== */

.pre-yt-card-inner .pre-yt-info-overlay {
position: absolute;
top: 0;
Expand All @@ -194,10 +200,9 @@
background: rgba(0, 0, 0, 0.85);
opacity: 0;
pointer-events: none;
transition: opacity var(--transition-default);
display: flex;
flex-direction: column;
padding: 45px 26px;
padding: var(--info-overlay-padding);
box-sizing: border-box;
z-index: 3;
}
Expand All @@ -221,7 +226,7 @@
.pre-yt-card-inner .pre-yt-overlay-text {
flex: 1;
color: var(--color-white);
font-size: 18px;
font-size: var(--overlay-text-font-size);
line-height: 1.5;
margin: 0;
overflow-y: auto;
Expand Down Expand Up @@ -250,16 +255,12 @@
background-color: rgba(0, 0, 0, 0.7);
}

/* ====================
Card States - Expanded
==================== */

.pre-yt-card.expanded {
z-index: 1;
}

.pre-yt-card.expanded .pre-yt-card-inner {
transform: scale(1.161);
transform: scale(var(--card-scale));
border: 2px solid var(--color-white);
}

Expand All @@ -280,10 +281,6 @@
display: none;
}

/* ====================
Card States - Info Visible
==================== */

.pre-yt-card.info-visible .pre-yt-info-overlay {
opacity: 1;
pointer-events: auto;
Expand All @@ -299,10 +296,6 @@
z-index: 4;
}

/* ====================
Loading State - Shimmer Effect
==================== */

.pre-yt-card.shimmer .pre-yt-card-inner .image-wrapper {
background-color: #e0e0e0;
background-image: linear-gradient(
Expand Down Expand Up @@ -331,15 +324,24 @@
}
}

/* ====================
Responsive - Tablet (600px - 1199px)
==================== */

/* Tablet */
@media (min-width: 600px) {
.pre-yt-grid {
grid-template-columns: repeat(3, minmax(min-content, 203px));
max-width: calc((203px * 3) + (16px * 2) + 40px);
padding: 90px 20px 80px;
:root {
--grid-columns: 3;
--grid-card-width: 203px;
--card-scale: 1.158;
--button-font-size: 17px;
--button-padding: 6px 21px;
--button-border-radius: 23px;
--button-line-height: 22px;
--button-max-width-offset: 60px;
--free-tag-height: 20px;
--free-tag-font-size: 11px;
--free-tag-padding: 1.48px 7.38px 2.22px;
--free-tag-border-radius: 3px;
--info-button-left: unset;
--info-button-right: 14px;
--close-card-button-display: none;
}

/* Reset mobile offset */
Expand All @@ -352,49 +354,25 @@
transform: translateY(var(--card-offset));
}

/* Card state adjustments */
.pre-yt-card.expanded .pre-yt-card-inner {
transform: scale(1.158);
}

/* Button adjustments */
.pre-yt-card-inner .pre-yt-button {
font-size: 17px;
padding: 6px 21px;
border-radius: 23px;
line-height: 22.164px;
max-width: calc(100% - 60px);
}

/* Free tag adjustments */
.pre-yt-card .pre-yt-free-tag {
height: 19.69px;
font-size: 10.34px;
padding: 1.48px 7.38px 2.22px;
border-start-start-radius: 2.95px;
border-end-start-radius: 2.95px;
}

/* Control button positioning */
.pre-yt-card-inner .pre-yt-info-button {
inset-inline-end: 13.9px;
inset-inline-start: unset;
}

.pre-yt-card-inner .pre-yt-close-card-button {
display: none;
}
}

/* ====================
Responsive - Desktop (1200px and above)
==================== */
}

/* Desktop */
@media (min-width: 1200px) {
.pre-yt-grid {
grid-template-columns: repeat(5, minmax(min-content, 275px));
max-width: calc((275px * 5) + (16px * 4) + 40px);
padding: 90px 80px 80px;
:root {
--grid-columns: 5;
--grid-card-width: 275px;
--grid-padding-inline: 80px;
--card-scale: 1.116;
--button-display: none;
--free-tag-height: 26px;
--free-tag-font-size: 14px;
--free-tag-padding: 2px 10px 3px;
--free-tag-border-radius: 4px;
--close-card-button-display: none;
}

/* Reset tablet offset */
Expand All @@ -408,24 +386,9 @@
transform: translateY(var(--card-offset));
}

/* Card state adjustments */
.pre-yt-card.expanded .pre-yt-card-inner {
transform: scale(1.116);
}

/* Hide mobile/tablet buttons - including expanded state */
.pre-yt-card-inner .pre-yt-button,
.pre-yt-card.expanded .pre-yt-button,
.pre-yt-card-inner .pre-yt-close-card-button {
display: none;
}

/* Free tag adjustments */
.pre-yt-card .pre-yt-free-tag {
height: 26px;
font-size: 14px;
padding: 2px 10px 3px;
border-start-start-radius: 4px;
border-end-start-radius: 4px;
}
}
}
Loading
Loading