cancel
Showing results for 
Search instead for 
Did you mean: 

CSS Manipulation for Specific Element

rakesh2901
Participant
0 Kudos

Hi Experts,

I need to change the style of few UI element but adding the CSS class directly to iy is not helping for Ex:

<Input xmlns="sap.m" width="100%" id="__input" class="inputStyle"/>

here class inputStyle is not helping.But the following code if used is working:

#__xmlview1--__input-inner{
		border-radius: 10px;
}

My concern is since the view ID is dynamic and get prefixed with the element to make its ID.how can I access a particular UI element to change its style??

Regards

Rakesh

Accepted Solutions (1)

Accepted Solutions (1)

Sharathmg
Active Contributor
0 Kudos

Use :

.inputStyle input{
    border-radius: 10px;
}
rakesh2901
Participant
0 Kudos

Sorry for late response.

Sharath, I think this will change the CSS for all the input element , I need to work on specific element.

Regards

Rakesh

Sharathmg
Active Contributor
0 Kudos

Nope. It won't as it will apply only for Input controls with the custom style inputStyle applied to it.

Try it.

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos