Bullet(lists) is not rendering in the page while clicking the save button.

kkhan_123

04-06-2020

I have developed tabbed module component in AEM 6.5.When I have selected the bullet point  in any text then it has appear in the dialog but when clicked the save  then bullet points are not rendered to the page. PFB Screenshot.

kkhan_123_0-1591291376566.png

When I clicked the save button bullets points not rendered to the page.

kkhan_123_1-1591291946894.png

node structure of rte-Config:

kkhan_123_2-1591292800663.png

When I have seen this rte-Config node here externalStyleSheets presented and when I went to this path (/etc/design/microsites/clientlibs/editorial.css )no editorial.css presented.I think styled property has applied in editorial.css but from where I found this file.

kkhan_123_3-1591293337758.png

In above image(inside clientlibs) no editorial.css folder presented.

 

Accepted Solutions (1)

Accepted Solutions (1)

Nupur_Jain

MVP

04-06-2020

Hi @kkhan_123 

 

Can you inspect this page and send me the final html rendered from element section of developers tool like given in below screenshot:

 

Screenshot from 2020-06-04 23-53-27.png

 

Thanks,

Nupur

Answers (3)

Answers (3)

Veena_Vikram

MVP

05-06-2020

As @Nupur_Jain mentioned, the issue is with the site specific CSS overriding the ul and li stlyes. To check that please do the below steps

 

  1. Click inspect element 
  2. Highlight your ul tag , and on the right side , check the computed styles tab. There you should see list-style-type , if you click that it will tell you exactly which is the last CSS style which is getting rendered. I will also show you styles which are overridden by a strike-off mark.ul -tag.JPG
  3. If you don't find anything on ul tag, do the same with li tag . This will help you find the exact CSS which is overriding your CSS

Hope this helps. Happy Developing 🙂

Veena ✌

Hi @Veena_Vikram, @nupurjain, found main.css when I have highlighted the ul tag and when I remove the ul { list-style-type: none; } none option here then the bullet is reflecting properly in page but outside the dialog-box. PFB Details.

kkhan_123_0-1591605863827.png

and it is reflecting the some other component instead of rte(lists).PFB Details.

kkhan_123_1-1591606052969.png

in this field text there is no rte bullet points is present it is only a heading.

kkhan_123_2-1591606170173.png

when i save the dialog then a bullet point came in heading also.

my doubt is that In rte-Config on externalstylesheet path is present but when i am going to that path(/etc/designs/microsites/clientlibs/editorial.css) there is no editorial.css is present,If i can make a css file in that path then problem might be solve.

 

 

 

 
 
 
 

 

 

 

 

Hi @Veena_Vikram, @Nupur_Jain, I have done the same thing and I found that there is a main.css is used when I highlighted the ul tag,When i remove the none from ul{list-style-type:none;} then the bullet is rendered properly on the page but it is affected the other component.for exp:I have a feature list v2 component where ul tag is used in heading when i save the dialog the bullet appeared in heading also likewise list(which is present in rte).PFB details.

kkhan_123_0-1591621269080.png

In above image list_item_heading is not the part of rte but here also bullet point reflected.

I know this the default css when there is no css  found in a particular path then this one is rendered.

My doubt is that inside the rte-config folder one property externalstylesheet  presented when i moved to this respective path,I have not found editorial.css inside clientlibs folder.PFB details.

kkhan_123_0-1591622147323.png

 

,then I wrote a editorial.css and put  a list-style-type here but the dialog not effected by this change.Please look into this issue.

Veena_Vikram

MVP

12-06-2020

@kkhan_123 I read your comments under my reply. Just replying here as it might be visible and might help other too. When working with CSS , you have to be careful about few things

  • Never modify styles under generic tags . For eg, if you have a css style 

 

ul {
  list-style-type: circle;
}​

 

never modify that directly as it will affect all the ul tags in your page. Rather to work with any specific ul tag issue , give a class name or identify a unique reference for the tag in question and apply the styles only to that 

 

For e.g. In your case your ul tag has a class="featured-list__list-container" so , you can add a style like below to make the bullets appear 

 

.featured-list__list-container ul {
  list-style-type: circle;
}

 

 

Hope this is your issue and will solve it. 

 

Veena ✌