Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

10 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor

@kkhan_123 

 

So, looking at the screenshot. Nothing is wrong with how dialog is saving these bullets. The markup for ul and li elements is getting generated properly. This seems to be some css issue which is hiding these bullets. This css could be some project specific css getting applied from some parent element. 

 

For ex: CSS given below can hide bullets. Similarly, you ill have to find for this css in your project specific css for these elements and either remove it or fix it specifically.

ul { list-style-type: none; }

 

Hope it helps!

Thanks!

Nupur

Avatar

Employee
Have you check the borwser debugger to verify if there is any error e.g. js error, when clicking save in dialg ?

Avatar

Level 3
Hi @hamidk92094312 there is no error in js I think this is the problem with css because editorial.css is not present in clientlib folder.

Avatar

Community Advisor

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 ✌

Avatar

Level 3

Hi @VeenaVikraman, @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.

 

 

 

 
 
 
 

 

 

 

 

Avatar

Level 3

Hi @VeenaVikraman, @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.

Avatar

Community Advisor

@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 ✌