renderedCallback() {
//この段階で標準のコンポのスタイルを上書きします
console.log(this.isRendered);
if (this.isRendered) {
return;
}
this.isRendered = true;
let style = document.createElement('style');
style.innerText = '.slds-th__action:focus, .slds-th__action:hover {background-color: #F5C9C6; color: #000000;}';
this.template.querySelector('c-cks_custom_table').appendChild(style);
let style2 = document.createElement('style');
style2.innerText = '.slds-th__action{background-color: #F5C9C6; color: #000000;}';
this.template.querySelector('c-cks_custom_table').appendChild(style2);
let style3 = document.createElement('style');
style3.innerText = '.slds-scrollable_x,.slds-scrollable--x{padding-bottom:10px !important;}';
this.template.querySelector('c-cks_custom_table').appendChild(style3);
}
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme