0
0

More than 3 years have passed since last update.

强制覆盖标准tag的css,或者标准的slds

Posted at
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);
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0