Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
feat: add style for button disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
GusBaamonde committed Mar 18, 2019
1 parent 29a443b commit b27a16f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/scss/modules/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@
}
}
}

.dp-button:disabled {
pointer-events: none;
border: 1px solid $dp-color-sylver;
color: $dp-color-grey;
background-color: $dp-color-snow;
opacity: 0.8;
}
}
@include dp-button();
10 changes: 10 additions & 0 deletions assets/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ <h2>Botones</h2>
</ul>
</div>
</div><!-- button-card -->
<div class="buttons-card">
<button type="button" class="dp-button button-medium primary-green" disabled>Button Disabled</button>
<div class="button-description">
<p><strong>Disabled</strong></p>
<ul class="button-list">
<li><strong>background-color:</strong> #EAEAEA;</li>
<li><strong>border:</strong> 1px solid #CCC;</li>
</ul>
</div>
</div><!-- button-card -->
</main><!-- main-buttons -->
</section><!-- section-module -->
</main>
Expand Down

0 comments on commit b27a16f

Please sign in to comment.