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

feat : button block #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat : button block #53

wants to merge 1 commit into from

Conversation

BaskarMitrah
Copy link
Collaborator

@BaskarMitrah BaskarMitrah commented Dec 23, 2024

Copy link

aem-code-sync bot commented Dec 23, 2024

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

aem-code-sync bot commented Dec 23, 2024

* Decorates the button block.
* @param {Element} block The calendar block element.
*/
export default async function decorate(block) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if we should create a buttonblock. Looking at the markdown file for the test url (https://button-block--adp-devsite--adobedocs.aem.page/developer-distribution/creative-cloud/docs/guides/zxp/distribution), it looks like the button is part of TeaserBlock: https://github.com/AdobeDocs/developer-distribute/blob/main/src/pages/guides/zxp/distribution.md?plain=1#L31-L33

I think this logic should reside within decorateButtons instead. I believe @louisachu had to do something similar for mini-resource-card buttons (#39). @louisachu what are your thoughts?

Copy link
Collaborator

@melissag-ensemble melissag-ensemble Dec 30, 2024

Choose a reason for hiding this comment

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

@BaskarMitrah after talking with @louisachu, I think I see why you created ButtonBlock. I see in the markdown file, you've replaced TeaserBlock with ButtonBlock.

TeaserBlock was actually merged into Announcement Block (https://jira.corp.adobe.com/browse/DEVSITE-1428).

Could you try

and see if that achieves the desired result. Let me know how it goes!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants