0

I have an issue with the lightning-accordion-section styling where it overlaps with the action buttons:

screenshot here

Here is my code:

  <lightning-accordion allow-multiple-sections-open>
    <lightning-accordion-section
      name={item.Id}
      label="Accordion Label"
      heading-level="3"
    >
      <lightning-button
        variant="outline"
        label="Map&nbsp;It"
        title="Map It"
        slot="actions"
      ></lightning-button>
      <template lwc:if={isStatusNewOrPosted}>
        <lightning-button
          variant="brand"
          label="Edit"
          title="Edit"
          slot="actions"
          class="slds-m-left_small"
        ></lightning-button>
      </template>
       <div><!-- content --></div>
    </lightning-accordion-section>
  </lightning-accordion>

Is there a way to fix it so that the button border is not overlapping the action buttons?

I looked through the Salesforce documentation and searched for similar issues on the web but couldn't find any useful information.

1
  • I cannot replicate the issue shown in the screenshot. Can you also add what else you have in your html? Or in the content of the accordion? Commented 7 hours ago

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.