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

Feature request: Support font-weight in mj-accordion, mj-accordion-element and mj-accordion-title #2935

Open
jonnitto opened this issue Jan 31, 2025 · 2 comments

Comments

@jonnitto
Copy link
Contributor

Currently font-weight is only supported by mj-accordion-text. As especially in the title is often use bolder fonts, it would be nice to have the attribute font-weight also supported in mj-accordion, mj-accordion-element and mj-accordion-title

As a workaround I have to create dynamic css classes with to achieve a solution

@probablyabear
Copy link

Do you have a mockup of where you'd like font-weight available within the accordion component?

@jonnitto
Copy link
Contributor Author

jonnitto commented Feb 3, 2025

I don't know if I get your question right, but I could look like this:

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-accordion>
          <mj-accordion-element>
            <mj-accordion-title font-weight="700">Why use an accordion?</mj-accordion-title>
            <mj-accordion-text>
              Because emails with a lot of content are most of the time a very bad experience on mobile, mj-accordion comes handy when you want to deliver a lot of information in a concise way.
            </mj-accordion-text>
          </mj-accordion-element>
        </mj-accordion>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

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

No branches or pull requests

2 participants