Skip to content

refactor(button): new button sample including individual type themes (vnext) #3674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: vnext
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<div class="buttons-sample">
<div class="button-sample">
<button igxButton="contained" igxRipple="#fdfdfd">Styled Button</button>
</div>
<div class="button-sample">
<button igxButton="contained" [disabled]="'true'" igxRipple>Disabled</button>
</div>
</div>
<div class="button-sample">
<button igxButton="contained" igxRipple>Contained Button</button>
</div>
<div class="button-sample">
<button igxButton="flat" igxRipple>Flat Button</button>
</div>
<div class="button-sample">
<button igxButton="outlined" igxRipple>Outlined Button</button>
</div>
<div class="button-sample">
<button igxButton="fab" igxRipple>Fab Button</button>
</div>
<div class="button-sample">
<button igxButton="contained" [disabled]="'true'">Disabled</button>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
@use "layout.scss";
@use "igniteui-angular/theming" as *;

$custom-button-theme: button-theme(
$foreground: #fdfdfd,
$hover-foreground: #fdfdfd,
$focus-foreground: #fdfdfd,
$background: #345779,
$hover-background: #2e4d6b,
$focus-background: #2e4d6b,
$disabled-foreground: #2e4d6b,
$custom-contained-theme: contained-button-theme(
$background: #348ae0
);

$custom-flat-theme: flat-button-theme(
$foreground: var(--ig-error-800)
);

$custom-outlined-theme: outlined-button-theme(
$foreground: var(--ig-success-500)
);

$custom-fab-theme: fab-button-theme(
$background: #ffc506
);

.button-sample {
@include css-vars($custom-button-theme);
}
@include css-vars($custom-contained-theme);
@include css-vars($custom-flat-theme);
@include css-vars($custom-outlined-theme);
@include css-vars($custom-fab-theme);
};

Loading