All files / src/components/button Button.css

60% Statements 6/10
66.67% Branches 4/6
50% Functions 1/2
60% Lines 6/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 831x   1x 1x     1x   1x 1x                                                                                                                                                  
button {
    display: inline-flex;
    Ealign-items: center;
    justify-content: space-between;
    user-select: none;
    cursor: pointer;
    border-width: var(--gcl-border-width);
    background: var(--gcl-background-color);
    column-gap: E1rem;
    border-radius: 4px;
    /* outline: 0;
      margin-right: 8px;
      margin-bottom: 12px;
      line-height: 1.5715;
      position: relative;
    
      font-weight: 400;
      white-space: nowrap;
      text-align: center;
      background-image: none;
      border: 1px solid transparent;
      -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, .015);
      box-shadow: 0 2px 0 rgba(0, 0, 0, .015);
      -webkit-transition: all .3s cubic-bezier(.645, .045, .355, 1);
      transition: all .3s cubic-bezier(.645, .045, .355, 1);
      user-select: none;
      -ms-touch-action: manipulation;
      touch-action: manipulation;
      
      color: rgba(0, 0, 0, .65);
      
      border-color: #d9d9d9; */
}
 
:host([variant='outlined']) button {
    border-style: solid;
}
 
:host([variant='text']) button {
    border-style: none;
}
 
/* Contained buttons */
:host([variant='contained'][kind='primary']) button {
    background-color: var(--gcl-color-primary);
    color: var(--gcl-color-on-primary);
}
 
:host([variant='contained'][kind='secondary']) button {
    background-color: var(--gcl-color-secondary);
    color: var(--gcl-color-on-secondary);
}
 
:host([variant='contained'][kind='tertiary']) button {
    background-color: var(--gcl-color-tertiary);
    color: var(--gcl-color-on-tertiary);
}
 
/* Outlined or Text buttons */
:host(:not([variant='contained'])[kind='primary']) button {
    color: var(--gcl-color-primary);
}
 
:host(:not([variant='contained'])[kind='secondary']) button {
    color: var(--gcl-color-secondary);
}
 
:host(:not([variant='contained'])[kind='tertiary']) button {
    color: var(--gcl-color-tertiary);
}
 
/* Border*/
:host([kind='primary']) button {
    border-color: var(--gcl-color-primary);
}
 
:host([kind='secondary']) button {
    border-color: var(--gcl-color-secondary);
}
 
:host([kind='tertiary']) button {
    border-color: var(--gcl-color-tertiary);
}