Questions tagged [styleclass]
The styleclass tag has no summary.
23 questions
-1 votes
2 answers
2k views
Apply css class based on specific condition in Lightning component along with standard Lightning Design System
I'm trying to implement a css property from the style class of the Aura component based on the value of Aura attribute along with certain other slds class as well, which will be static. Below are the ...
0 votes
1 answer
2k views
Displaying button group vertically
I'm using lightning-button-group in my LWC component however, by default it displays the grouped buttons horizontally - in one row. How would I change it to display vertically? Thanks.
1 vote
2 answers
8k views
How to add padding to rows in Lightning-datatable in LWC?
I have created a datatable in LWC as below: HTML: <div class = "slds-m-around_medium"> <lightning-datatable key-field="Id" data={accountList} columns={columnList} hide-...
1 vote
0 answers
96 views
Color of field Error in VFP
I am using the Standard field Email of the Standard object Contact in a VFP. In Salesforce when I enter an invalid email address, I get the error message like this However When I enter an invalid ...
2 votes
1 answer
4k views
How to hide page header in lightning component
I want to hide a page header from an appHomeTemplate I have looked at several similar questions but none of them give an answer. I have used .THIS.slds-page-header { display: none; } in my page ...
0 votes
0 answers
381 views
How to add the css in lightning component style class
I am using a third party lightning component in 'lightning Flow' to display dynamic questions. Some checkboxes are getting displayed via that lightning component but their width is set to 100%. I ...
0 votes
1 answer
723 views
Style apex select option in Bootstrap theme
Please help me to style custom picklist in bootstrap theme. So I have a controller with code: public List<selectOption> getSettings() { List<SelectOption> options = new List<...
0 votes
1 answer
241 views
styles are changing in <li> , If I put <li> in outputpanel
I am looking to display labels based on the condition for that I am trying to use Outputpanel. But, If I use Outputpanel "li" tag styles are changing and Underline is coming on labels when we put ...
0 votes
1 answer
4k views
Custom Style on lightning:textarea
I want to add custom styling to text area height, border, color etc This is Component <lightning:textarea name="notes" value="" class="topText" label="Notes" maxlength="300" /> This is css ...
0 votes
3 answers
5k views
border-radius table visualforce page
I am trying to put some styling to my table with a border-radius in my visualforce page but when rendered to pdf I dont see the rounded corners. Is this not possible with render to PDF and if not are ...
0 votes
2 answers
964 views
What could be the reason for app.css overriding external styles. How can we prevent it from happening
I have a external CSS stored in static resource. I am referencing style class from that CSS in many places( lightning components and visual force pages). After winter 18 update,few of my styles ...
0 votes
0 answers
17 views
Lightning supresses custom classes in VisualForce page
I ran into an issue where a VisualForce page containing custom style classes (in the head tag), and which displays fine in Classic, gets the custom classes supressed in Lightning. If raw styles are ...
6 votes
2 answers
18k views
Setting Dynamic style classes for Aura components
As in doc it should be possible to set style classes for #[Lightning] components using a Ternary operator. <div class="{!v.IsTest ? '' : 'slds-hide'}">test</div> But it seems when I do ...
2 votes
1 answer
172 views
Shift Command button position to float center
I have a requirement to shift an apex command button to middle or center position. I can get the feeling that if I can achieve float: center then it would be my desired location for the command button,...
0 votes
0 answers
257 views
Styles not coming up perfectly on dependent picklists used as input-fields
I am creating a visualforce page using lightning design system style classes.The issue which I am facing is that I am using styleClass attribute in my two picklists shown using These picklists are ...