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

Bullet points with <ul> tag #763

Open
nigamneha90 opened this issue Feb 12, 2024 · 1 comment
Open

Bullet points with <ul> tag #763

nigamneha90 opened this issue Feb 12, 2024 · 1 comment

Comments

@nigamneha90
Copy link

While using

    tag normally in html along with
  • tag, it renders the list with bullet points. But when I use
      tag with
    • tag in Salesforce lwc component to render the list, it doesnt render the list with bullet points. Why is that so? Can someone please explain the reason behind it? Is there any default CSS styling provided by Salesforce that's overidding the browser CSS styling? Please explain...Thank you!

@manshamadan30
Copy link

manshamadan30 commented Feb 15, 2024

In HTML, the <ul> element is rendered with bullet points by default. However, in Lightning Web Components (LWC), you need to define a style class to make the bullet points appear. For example, the following code includes bullet points because of the specified style class:

image

On the other hand, the following code won't display bullet points unless a style class is defined:

image

You can find more details at https://www.lightningdesignsystem.com/utilities/vertical-list/

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