pnp / sp-dev-fx-controls-react

Reusable React controls for SPFx solutions
https://pnp.github.io/sp-dev-fx-controls-react/
MIT License
383 stars 380 forks source link

How to add custom css in 'ListItem comment' webpart. #1210

Open AnsariFurqan opened 2 years ago

AnsariFurqan commented 2 years ago

Hello, Would anyone know how to change the width of the "List item comment" web part. There are some changes that I would like to make in the CSS of the Input Textarea and the Text Display Area, and I would like to hide the Delete button. We have tried to change its width using CSS injection, but internally, the 'ListItem Comment' web part uses 'MS-Stack' and the class name is changing dynamically.

Please refer to the below image for the outcome of the currently used ListItem Comment web part. ListItemComImage

Code -

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

michaelmaillot commented 1 year ago

Hi @AnsariFurqan,

For now if I'm not mistaken, there's nothing provided by the control to customize its rendering. However, maybe this could be an improvment idea.