Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

0 votes

How set font size on a lightning-button-menu?

How do I access that font attribute? In general, you don't. The Shadow DOM specifically prevents unlimited access to the inside of a closed component: CSS styles defined in a parent component don’t ...
sfdcfox's user avatar
  • 497k
0 votes

Refer static resource in css of lightning component in Managed Packages

Solved: I just need to add the namespace in the static resource reference: background: url("/resource/MyNamespace__fivestar/stars.svg");
Fran Mejias's user avatar
0 votes

LWC Tabset - edit size of lightning-tab

No, this is not possible. First of all, there is no respective option in the documentation you're pointing out. There are neither any respective styling hooks listed in the context of the Lightning ...
Felix van Hove's user avatar
0 votes

Make lightning:layoutItem fill the remaining screen space

As of Spring 2023, some styling hooks are no longer global, so I had trouble with Anton's solution. This was my workaround... renderedCallback() { const position = this.template.querySelector(&...
louis's user avatar
  • 91
0 votes

Changing lightning-card height

By default when you use the lightning-card CSS apply display: inline;. That's why when you apply your custom CSS for the height will not apply. You can try setting the display to something other than ...
Tushar Jadav's user avatar
  • 2,268
0 votes

CSS styling hooks not applying for lightning-badge in LWC

--slds-c-badge-color-background: rgb(6, 6, 155); is working in my case. Can you check following? Make sure the CSS file name is correct. It should be exactly same as component name. Make sure the CSS ...
Abhilav Srivastav's user avatar
3 votes

How does persistent browser caching work internally?

What the option does is exactly what it says: enables caching on the client side (the users' browsers) to improve performance by reducing the number of calls to Salesforce's servers. This includes not ...
Renato Oliveira's user avatar
0 votes

Colspan not working in SLDS lightning Salesforce LWC

rowspan isn't working, because you put it on the div instead of the td. However, you'll need to change more than just that. SLDS just isn't compatible with rowspan; the styles end up forcing the cells ...
sfdcfox's user avatar
  • 497k
1 vote

JS classList not working

Instead of selecting the lwc button by name we can select it by the data-id attribute like below : for(let j of this.visualPickerData){ if(j.pDetail.length <= 1){ const buttons = this.template....
Rohit's user avatar
  • 2,091
0 votes

Align DIV bottom of the next page in pdf file

The solution in this link worked for me: If your div blocks already have ...
Talha Saqib's user avatar

Top 50 recent answers are included