Skip to content
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

V2 Columns Block variation #133 #186

Merged
merged 8 commits into from
Jan 17, 2024
Merged

V2 Columns Block variation #133 #186

merged 8 commits into from
Jan 17, 2024

Conversation

Copy link
Contributor

aem-code-sync bot commented Dec 12, 2023

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link
Contributor

aem-code-sync bot commented Dec 12, 2023

Page Scores Audits Google
/drafts/shomps/columns-variation PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
margin: 28px 0 10px;
}

.v2-columns.v2-columns--trucks .v2-columns__heading::before {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed in favour of header-with-mark or by expanding the selector of that style

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done

@aem-code-sync aem-code-sync bot temporarily deployed to 133-columns-variation December 19, 2023 10:14 Inactive
Copy link
Contributor

aem-code-sync bot commented Dec 19, 2023

Page Scores Audits Google
/drafts/shomps/columns-variation PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@cogniSyb cogniSyb changed the title Columns trucks variation V2 Columns Block variation #133 Dec 19, 2023
@cogniSyb cogniSyb added the FR Functional requirement label Dec 19, 2023
@aem-code-sync aem-code-sync bot temporarily deployed to 133-columns-variation December 19, 2023 12:45 Inactive
@aem-code-sync aem-code-sync bot temporarily deployed to 133-columns-variation December 19, 2023 13:14 Inactive
margin-bottom: 0;
}

.redesign-v2 li::before {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather use ::marker instead.

This causes regression as it’s too generic:
Screenshot 2023-12-19 at 13 25 00

Can you think of a selector that makes sense here so we can reuse this styling in other places? Maybe adding a generic class to the ul would work as well.

blocks/v2-columns/v2-columns.css Show resolved Hide resolved
width: 100%;
}

.redesign-v2 .section--with-background.v2-columns__trucks > picture img {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the class generated by variantsClassesToBEM here instead

margin-left: 56px;
}

.redesign-v2 .section--with-background.v2-columns__trucks > picture img {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the class generated by variantsClassesToBEM here instead

btn.parentElement.replaceWith(btn);
if (isTruckVariant) {
if (!hasHeader) bodyElmts[0].classList.add('no-header');
blockParent.classList.add(`${blockName}__trucks`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn’t be here ideally. We’re using variantsClassesToBEM already

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class is required at section level to style the background image , however added the variant class name to section

blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
/* stylelint-disable-next-line no-descending-specificity */
.v2-columns.v2-columns--trucks .v2-columns__btn-section a.button,
.v2-columns.v2-columns--trucks .v2-columns__btn-section a.button:not(a.button:first-of-type) {
margin: 16px 0 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This margin should be handled instead by gap, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep this is removed

blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.js Outdated Show resolved Hide resolved
@cogniSyb cogniSyb merged commit cd88cf9 into develop Jan 17, 2024
2 checks passed
manuel-vara added a commit that referenced this pull request Jan 31, 2024
* Update fstab.yaml for redesign

* change url and sharepoint to upstream urls

* Inpage navigation is in reversed order on Firefox #173 (#178)

* fix Firefox issue with sorting
* fix naming issues
* refactor focus state, button styles
* fix overlap issue

* Hero V2 Block displays different images for mobile and desktop. #106 (#179)

* refactor naming structure
* refactor adaptive images mechanism

* Icon cards block (#181)

* #509 Fix displaying header on dealer page

* fix done

* one trust position ix

* Embed block match NZ one

* Update feed.xml

* Fix createElement()  v1-Cards

* Update feed.xml

* Update release.yml

* columns block adapted

* icon cards working

* css clean

* adjustements

* last changes

* specific class

* btn state styling

* comments corrected

* secondary btn margin corrected

* secondary btn class added

* cleanup

---------

Co-authored-by: Tomasz Dziezyk <[email protected]>
Co-authored-by: TomaszDziezykNetcentric <[email protected]>
Co-authored-by: Jonatan Lledo <[email protected]>
Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: Syb <[email protected]>

* The pop-up of the video displayed clicking on the Play video button is smaller and the thumbnail is cutout #182 (#183)

* iPhone/iPad - Icon Cards - The local video in the video pop-up cannot be played and is incorrectly displayed #184 (#185)

* fix #184: use <video> tag for video in modal
* fix modal close button
* fix override fullscreen play for safari
* refactor setting attributes

* Opening up Images will display an incorrect default state on the Image grid carousel #169 (#193)

* Hero variant for Solutions page #45 (#197)

* hero variants added

* refactored changes to alltrucks block

* comments addressed

* color confusion

* make btn color always white

* button style refactor

* margin solved

* pdp edge cases

* Tabbed Carousel variant for wheelbase #190 (#196)

* add new variant for tabbed carousel
* 190 fadeIn effect with no scroll
* 190 Fix line more than 100 chars
* 190 fix index overflow
* Figcap conditional add, default color & tab items wider
* list style none & setCarousel index-1 too

---------

Co-authored-by: Jonatan Lledo <[email protected]>

* Pencil Promo block #108 (#195)

* #108 - Pencil promo and banner promo block

* #108 - Add cursor: pointer to the block

* #108 - Add pencil banner links styles

* #108 - Change link hover color to acheive better contrast

* Applied comments & each block cares by itself only

* fixed alignment issue in line 288

* fix lint issue

* Fix an issue if p Element is not present inside content

* Style issues fix

* remove an unnecessary search for h1 & its styling

* move the hover effect 1 level up & a bit of code clean up

---------

Co-authored-by: Jonatan Lledo <[email protected]>

* fix alignment, add hover and focus state

* V2 Columns Block variation #133 (#186)


---------

Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: Lakshmishri <[email protected]>
Co-authored-by: Syb Wartna <[email protected]>

* Add "My Assets" functionality #201 (#202)

* add my assets to sidekick
* add custom viewport configurations for sidekick library

* Powertrain V2 Slider Block #147 (#200)

* add block
* add new section background color

---------

Co-authored-by: Syb <[email protected]>
Co-authored-by: Syb Wartna <[email protected]>
Co-authored-by: SantiagoHomps-NC <[email protected]>
Co-authored-by: Tomasz Dziezyk <[email protected]>
Co-authored-by: TomaszDziezykNetcentric <[email protected]>
Co-authored-by: Jonatan Lledo <[email protected]>
Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: taimurCognizant <[email protected]>
Co-authored-by: Lakshmishri <[email protected]>
Co-authored-by: Marko Vukićević <[email protected]>
cogniSyb added a commit that referenced this pull request Feb 26, 2024
* change url and sharepoint to upstream urls

* Release 4 (#211)

* Update fstab.yaml for redesign

* change url and sharepoint to upstream urls

* Inpage navigation is in reversed order on Firefox #173 (#178)

* fix Firefox issue with sorting
* fix naming issues
* refactor focus state, button styles
* fix overlap issue

* Hero V2 Block displays different images for mobile and desktop. #106 (#179)

* refactor naming structure
* refactor adaptive images mechanism

* Icon cards block (#181)

* #509 Fix displaying header on dealer page

* fix done

* one trust position ix

* Embed block match NZ one

* Update feed.xml

* Fix createElement()  v1-Cards

* Update feed.xml

* Update release.yml

* columns block adapted

* icon cards working

* css clean

* adjustements

* last changes

* specific class

* btn state styling

* comments corrected

* secondary btn margin corrected

* secondary btn class added

* cleanup

---------

Co-authored-by: Tomasz Dziezyk <[email protected]>
Co-authored-by: TomaszDziezykNetcentric <[email protected]>
Co-authored-by: Jonatan Lledo <[email protected]>
Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: Syb <[email protected]>

* The pop-up of the video displayed clicking on the Play video button is smaller and the thumbnail is cutout #182 (#183)

* iPhone/iPad - Icon Cards - The local video in the video pop-up cannot be played and is incorrectly displayed #184 (#185)

* fix #184: use <video> tag for video in modal
* fix modal close button
* fix override fullscreen play for safari
* refactor setting attributes

* Opening up Images will display an incorrect default state on the Image grid carousel #169 (#193)

* Hero variant for Solutions page #45 (#197)

* hero variants added

* refactored changes to alltrucks block

* comments addressed

* color confusion

* make btn color always white

* button style refactor

* margin solved

* pdp edge cases

* Tabbed Carousel variant for wheelbase #190 (#196)

* add new variant for tabbed carousel
* 190 fadeIn effect with no scroll
* 190 Fix line more than 100 chars
* 190 fix index overflow
* Figcap conditional add, default color & tab items wider
* list style none & setCarousel index-1 too

---------

Co-authored-by: Jonatan Lledo <[email protected]>

* Pencil Promo block #108 (#195)

* #108 - Pencil promo and banner promo block

* #108 - Add cursor: pointer to the block

* #108 - Add pencil banner links styles

* #108 - Change link hover color to acheive better contrast

* Applied comments & each block cares by itself only

* fixed alignment issue in line 288

* fix lint issue

* Fix an issue if p Element is not present inside content

* Style issues fix

* remove an unnecessary search for h1 & its styling

* move the hover effect 1 level up & a bit of code clean up

---------

Co-authored-by: Jonatan Lledo <[email protected]>

* fix alignment, add hover and focus state

* V2 Columns Block variation #133 (#186)


---------

Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: Lakshmishri <[email protected]>
Co-authored-by: Syb Wartna <[email protected]>

* Add "My Assets" functionality #201 (#202)

* add my assets to sidekick
* add custom viewport configurations for sidekick library

* Powertrain V2 Slider Block #147 (#200)

* add block
* add new section background color

---------

Co-authored-by: Syb <[email protected]>
Co-authored-by: Syb Wartna <[email protected]>
Co-authored-by: SantiagoHomps-NC <[email protected]>
Co-authored-by: Tomasz Dziezyk <[email protected]>
Co-authored-by: TomaszDziezykNetcentric <[email protected]>
Co-authored-by: Jonatan Lledo <[email protected]>
Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: taimurCognizant <[email protected]>
Co-authored-by: Lakshmishri <[email protected]>
Co-authored-by: Marko Vukićević <[email protected]>

* change url and sharepoint to upstream urls

---------

Co-authored-by: Syb Wartna <[email protected]>
Co-authored-by: Lakshmishri <[email protected]>
Co-authored-by: Syb <[email protected]>
Co-authored-by: SantiagoHomps-NC <[email protected]>
Co-authored-by: Tomasz Dziezyk <[email protected]>
Co-authored-by: TomaszDziezykNetcentric <[email protected]>
Co-authored-by: Jonatan Lledo <[email protected]>
Co-authored-by: aem-code-sync[bot] <aem-code-sync[bot]@users.noreply.github.com>
Co-authored-by: taimurCognizant <[email protected]>
Co-authored-by: Marko Vukićević <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR Functional requirement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants