Skip to content

Commit

Permalink
chore: update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
inikolova committed Sep 19, 2024
1 parent 58980ff commit 784c950
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,54 +1,51 @@
<kendo-combobox
[data]="disabilitiesData"
textField="text"
valueField="text"></kendo-combobox>
valueField="text" class="k-mb-4 !k-w-full"></kendo-combobox>

<kendo-expansionpanel title="Accessibility settings" [(expanded)]="settingsExpanded">
<form class="k-form k-form-md">
<fieldset>
<legend>Accessibility Settings</legend>
<kendo-formfield>
<kendo-label text="Text size:"></kendo-label>
<kendo-numeric-textbox-buttons (valueChange)="settingChange('textSize', $event)" [value]="textSize"></kendo-numeric-textbox-buttons>
</kendo-formfield>
<kendo-formfield>
<kendo-label text="Color theme:"></kendo-label>
<kendo-buttongroup selection="single">
<kendo-button size="large" (click)="settingChange('colorTheme', 'contrast')" [selected]="colorTheme === 'contrast'">Contrast</kendo-button>
<kendo-button size="large" (click)="settingChange('colorTheme', 'dark')" [selected]="colorTheme === 'dark'">Dark</kendo-button>
</kendo-buttongroup>
</kendo-formfield>
<kendo-formfield>
<kendo-label text="Text size:"></kendo-label>
<kendo-numeric-textbox-buttons (valueChange)="settingChange('textSize', $event)" [value]="textSize"></kendo-numeric-textbox-buttons>
</kendo-formfield>
<kendo-formfield>
<kendo-label text="Color theme:"></kendo-label>
<kendo-buttongroup selection="single">
<kendo-button size="large" (click)="settingChange('colorTheme', 'contrast')" [selected]="colorTheme === 'contrast'">Contrast</kendo-button>
<kendo-button size="large" (click)="settingChange('colorTheme', 'dark')" [selected]="colorTheme === 'dark'">Dark</kendo-button>
</kendo-buttongroup>
</kendo-formfield>

<kendo-formfield>
<kendo-label text="Font:"></kendo-label>
<kendo-buttongroup selection="single">
<kendo-button size="large" (click)="settingChange('font', 'legible')" [selected]="font === 'legible'">Legible Font</kendo-button>
<kendo-button size="large" (click)="settingChange('font', 'dyslexia')" [selected]="font === 'dyslexia'">Dyslexia Font</kendo-button>
</kendo-buttongroup>
</kendo-formfield>
<kendo-formfield>
<kendo-label text="Font:"></kendo-label>
<kendo-buttongroup selection="single">
<kendo-button size="large" (click)="settingChange('font', 'legible')" [selected]="font === 'legible'">Legible Font</kendo-button>
<kendo-button size="large" (click)="settingChange('font', 'dyslexia')" [selected]="font === 'dyslexia'">Dyslexia Font</kendo-button>
</kendo-buttongroup>
</kendo-formfield>

<kendo-formfield>
<kendo-label text="Common:"></kendo-label>
<kendo-button size="large" [toggleable]="true" (selectedChange)="settingChange('underlineLinks', $event)" [selected]="underlineLinks">Underiline Links</kendo-button>
</kendo-formfield>

<kendo-formfield>
<kendo-button size="large" [toggleable]="true" (selectedChange)="settingChange('pauseAnimations', $event)" [selected]="pauseAnimations">Pause Animation</kendo-button>
</kendo-formfield>

<kendo-formfield>
<kendo-button size="large" [toggleable]="true" (selectedChange)="settingChange('lgSizeWidgets', $event)" [selected]="lgSizeWidgets">Large Size Widgets</kendo-button>
</kendo-formfield>
<kendo-formfield>
<kendo-label text="Common:"></kendo-label>
<kendo-button size="large" [toggleable]="true" (selectedChange)="settingChange('underlineLinks', $event)" [selected]="underlineLinks">Underiline Links</kendo-button>
</kendo-formfield>

<kendo-formfield>
<kendo-label text="Line Height:"></kendo-label>
<kendo-numeric-textbox-buttons (valueChange)="settingChange('lineHeight', $event)" [value]="lineHeight"></kendo-numeric-textbox-buttons>
</kendo-formfield>

<kendo-formfield>
<kendo-label text="Letter Spacing:"></kendo-label>
<kendo-numeric-textbox-buttons (valueChange)="settingChange('letterSpacing', $event)" [value]="letterSpacing"></kendo-numeric-textbox-buttons>
</kendo-formfield>
</fieldset>
<kendo-formfield>
<kendo-button size="large" [toggleable]="true" (selectedChange)="settingChange('pauseAnimations', $event)" [selected]="pauseAnimations">Pause Animation</kendo-button>
</kendo-formfield>

<kendo-formfield>
<kendo-button size="large" [toggleable]="true" (selectedChange)="settingChange('lgSizeWidgets', $event)" [selected]="lgSizeWidgets">Large Size Widgets</kendo-button>
</kendo-formfield>

<kendo-formfield>
<kendo-label text="Line Height:"></kendo-label>
<kendo-numeric-textbox-buttons (valueChange)="settingChange('lineHeight', $event)" [value]="lineHeight"></kendo-numeric-textbox-buttons>
</kendo-formfield>

<kendo-formfield>
<kendo-label text="Letter Spacing:"></kendo-label>
<kendo-numeric-textbox-buttons (valueChange)="settingChange('letterSpacing', $event)" [value]="letterSpacing"></kendo-numeric-textbox-buttons>
</kendo-formfield>
</form>
</kendo-expansionpanel>
12 changes: 12 additions & 0 deletions examples-standalone/coffee-warehouse/src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,15 @@ kendo-recurrence-frequency-editor .k-edit-field {
border-start-start-radius: 0;
border-end-start-radius: 0;
}

.appbar-button-group .k-button.k-selected {
color: var(--kendo-color-base-on-surface);
}

.k-window {
--kendo-border-radius-md: var(--kendo-border-radius-lg);
}

.k-window .k-expander {
border-radius: var(--kendo-border-radius-lg);
}

0 comments on commit 784c950

Please sign in to comment.