Feature/decrease density of theme (#1846)

* Decrease density

* Update changelog
pull/1848/head
Thomas Kaul 2 years ago committed by GitHub
parent a37eebc9f1
commit 739cb4242d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed the slide toggles to checkboxes on the account page - Changed the slide toggles to checkboxes on the account page
- Changed the slide toggles to checkboxes in the admin control panel - Changed the slide toggles to checkboxes in the admin control panel
- Decreased the density of the theme
- Migrated the style of various components to `@angular/material` `15` (mdc) - Migrated the style of various components to `@angular/material` `15` (mdc)
- Upgraded `@angular/cdk` and `@angular/material` from version `15.2.5` to `15.2.6` - Upgraded `@angular/cdk` and `@angular/material` from version `15.2.5` to `15.2.6`

@ -2,10 +2,7 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<form class="align-items-center d-flex" [formGroup]="filterForm"> <form class="align-items-center d-flex" [formGroup]="filterForm">
<mat-form-field <mat-form-field appearance="outline" class="w-100 without-hint">
appearance="outline"
class="compact-with-outline without-hint w-100"
>
<mat-select formControlName="status"> <mat-select formControlName="status">
<mat-option></mat-option> <mat-option></mat-option>
<mat-option <mat-option

@ -172,7 +172,7 @@
<form #couponForm="ngForm" class="align-items-center d-flex"> <form #couponForm="ngForm" class="align-items-center d-flex">
<mat-form-field <mat-form-field
appearance="outline" appearance="outline"
class="compact-with-outline mr-2 without-hint" class="mr-2 without-hint"
> >
<mat-select <mat-select
name="duration" name="duration"

@ -105,7 +105,7 @@
<div class="pl-1 w-50"> <div class="pl-1 w-50">
<mat-form-field <mat-form-field
appearance="outline" appearance="outline"
class="compact-with-outline w-100 without-hint" class="w-100 without-hint"
> >
<mat-select <mat-select
name="baseCurrency" name="baseCurrency"
@ -129,7 +129,7 @@
<div class="pl-1 w-50"> <div class="pl-1 w-50">
<mat-form-field <mat-form-field
appearance="outline" appearance="outline"
class="compact-with-outline w-100 without-hint" class="w-100 without-hint"
> >
<mat-select <mat-select
name="language" name="language"
@ -174,7 +174,7 @@
<div class="pl-1 w-50"> <div class="pl-1 w-50">
<mat-form-field <mat-form-field
appearance="outline" appearance="outline"
class="compact-with-outline w-100 without-hint" class="w-100 without-hint"
> >
<mat-select <mat-select
name="locale" name="locale"
@ -199,7 +199,7 @@
<div class="pl-1 w-50"> <div class="pl-1 w-50">
<mat-form-field <mat-form-field
appearance="outline" appearance="outline"
class="compact-with-outline w-100 without-hint" class="w-100 without-hint"
> >
<mat-select <mat-select
class="with-placeholder-as-option" class="with-placeholder-as-option"

@ -402,10 +402,6 @@ ngx-skeleton-loader {
} }
.mat-mdc-form-field { .mat-mdc-form-field {
&.compact-with-outline {
// TODO: Configure density in Angular Material
}
&.without-hint { &.without-hint {
.mat-mdc-form-field-subscript-wrapper { .mat-mdc-form-field-subscript-wrapper {
display: none; display: none;

@ -80,11 +80,12 @@ $gf-theme-default: mat.define-light-theme(
primary: mat.define-palette($gf-primary), primary: mat.define-palette($gf-primary),
accent: mat.define-palette($gf-secondary, 500, 900, A100) accent: mat.define-palette($gf-secondary, 500, 900, A100)
), ),
density: 0, density: -3,
typography: $gf-typography typography: $gf-typography
) )
); );
@include mat.all-component-themes($gf-theme-default); @include mat.all-component-themes($gf-theme-default);
@include mat.button-density(0);
// Create dark theme // Create dark theme
$gf-theme-dark: mat.define-dark-theme( $gf-theme-dark: mat.define-dark-theme(
@ -93,12 +94,13 @@ $gf-theme-dark: mat.define-dark-theme(
primary: mat.define-palette($gf-primary), primary: mat.define-palette($gf-primary),
accent: mat.define-palette($gf-secondary, 500, 900, A100) accent: mat.define-palette($gf-secondary, 500, 900, A100)
), ),
density: 0, density: -3,
typography: $gf-typography typography: $gf-typography
) )
); );
.is-dark-theme { .is-dark-theme {
@include mat.all-component-colors($gf-theme-dark); @include mat.all-component-colors($gf-theme-dark);
@include mat.button-density(0);
} }
:root { :root {

Loading…
Cancel
Save