Skip to content
Draft
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
78 changes: 78 additions & 0 deletions packages/bootstrap/docs/customization-focus-indicator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
title: Customizing FocusIndicator
description: "Refer to the list of the Kendo UI Bootstrap theme variables available for customization."
slug: variables_kendothemebootstrap_focus-indicator
position: 9
---

# Customizing FocusIndicator

## Variables

The following table lists the available variables for customization.

<table class="theme-variables">
<colgroup>
<col style="width: 200px; white-space:nowrap;" />
<col />
<col />
<col />
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Computed value</th>
</tr>
</thead>
<tbody>
<tr>
<td>$default-focus-indicator</td>
<td>Map</td>
<td><code>(
shadow: (
outset: (
offset-x: 0,
offset-y: 0,
spread: 0,
width: 2px
),
inset: (
inset: true,
offset-x: 0,
offset-y: 0,
spread: 0,
width: 2px
)
),
border: (
width: 2px,
style: solid
)
)</code></td>
<td><ul><li>shadow: "outset":{"offset-x":0,"offset-y":0,"spread":0,"width":"0.25rem"},"inset":{"inset":true,"offset-x":0,"offset-y":0,"spread":0,"width":"2px"}</li><li>border: "width":"1px","style":"solid"</li><li>background: ()</li></ul></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">Focus indicator patterns with structure but no colors.</div></div>
</td>
</tr>
<tr>
<td>$kendo-focus-indicator</td>
<td>Map</td>
<td><code>$default-focus-indicator</code></td>
<td><ul><li>shadow: "outset":{"offset-x":0,"offset-y":0,"spread":0,"width":"0.25rem"},"inset":{"inset":true,"offset-x":0,"offset-y":0,"spread":0,"width":"2px"}</li><li>border: "width":"1px","style":"solid"</li><li>background: ()</li></ul></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The global focus indicator patterns map.</div></div>
</td>
</tr>
</tbody>
</table>

## Suggested Links

* [Styling Overview]({% slug themesandstyles %})
* [Web Font Icons]({% slug icons %})
* [Preview of the Themed Components](../)

14 changes: 7 additions & 7 deletions packages/bootstrap/docs/customization-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-input-focus-shadow</td>
<td>List</td>
<td><code>0 0 0 .25rem color-mix(in srgb, k-color(primary) 25%, transparent)</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td>String</td>
<td><code>color-mix(in srgb, k-color(primary) 25%, transparent)</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the focused Input components.</div></div>
Expand Down Expand Up @@ -504,9 +504,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-input-outline-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-input-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the outline focused Input components.</div></div>
Expand Down Expand Up @@ -604,9 +604,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-input-flat-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-input-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the flat focused Input components.</div></div>
Expand Down
12 changes: 6 additions & 6 deletions packages/bootstrap/docs/customization-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-picker-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-input-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the focused Picker components.</div></div>
Expand Down Expand Up @@ -319,9 +319,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-picker-outline-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-picker-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the outline focused Picker components.</div></div>
Expand Down Expand Up @@ -449,9 +449,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-picker-flat-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-picker-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the flat focused Picker components.</div></div>
Expand Down
86 changes: 73 additions & 13 deletions packages/bootstrap/docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -14286,6 +14286,66 @@ The following table lists the available variables for customizing the Bootstrap
</tbody>
</table>

### FocusIndicator

<table class="theme-variables">
<colgroup>
<col style="width: 200px; white-space:nowrap;" />
<col />
<col />
<col />
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Computed value</th>
</tr>
</thead>
<tbody><tr>
<td>$default-focus-indicator</td>
<td>Map</td>
<td><code>(
shadow: (
outset: (
offset-x: 0,
offset-y: 0,
spread: 0,
width: 2px
),
inset: (
inset: true,
offset-x: 0,
offset-y: 0,
spread: 0,
width: 2px
)
),
border: (
width: 2px,
style: solid
)
)</code></td>
<td><ul><li>shadow: "outset":{"offset-x":0,"offset-y":0,"spread":0,"width":"0.25rem"},"inset":{"inset":true,"offset-x":0,"offset-y":0,"spread":0,"width":"2px"}</li><li>border: "width":"1px","style":"solid"</li><li>background: ()</li></ul></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">Focus indicator patterns with structure but no colors.</div></div>
</td>
</tr>
<tr>
<td>$kendo-focus-indicator</td>
<td>Map</td>
<td><code>$default-focus-indicator</code></td>
<td><ul><li>shadow: "outset":{"offset-x":0,"offset-y":0,"spread":0,"width":"0.25rem"},"inset":{"inset":true,"offset-x":0,"offset-y":0,"spread":0,"width":"2px"}</li><li>border: "width":"1px","style":"solid"</li><li>background: ()</li></ul></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The global focus indicator patterns map.</div></div>
</td>
</tr>
</tbody>
</table>

### Form

<table class="theme-variables">
Expand Down Expand Up @@ -17715,9 +17775,9 @@ The following table lists the available variables for customizing the Bootstrap
</tr>
<tr>
<td>$kendo-input-focus-shadow</td>
<td>List</td>
<td><code>0 0 0 .25rem color-mix(in srgb, k-color(primary) 25%, transparent)</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td>String</td>
<td><code>color-mix(in srgb, k-color(primary) 25%, transparent)</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the focused Input components.</div></div>
Expand Down Expand Up @@ -17865,9 +17925,9 @@ The following table lists the available variables for customizing the Bootstrap
</tr>
<tr>
<td>$kendo-input-outline-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-input-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the outline focused Input components.</div></div>
Expand Down Expand Up @@ -17965,9 +18025,9 @@ The following table lists the available variables for customizing the Bootstrap
</tr>
<tr>
<td>$kendo-input-flat-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-input-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the flat focused Input components.</div></div>
Expand Down Expand Up @@ -24441,9 +24501,9 @@ The following table lists the available variables for customizing the Bootstrap
</tr>
<tr>
<td>$kendo-picker-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-input-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the focused Picker components.</div></div>
Expand Down Expand Up @@ -24591,9 +24651,9 @@ The following table lists the available variables for customizing the Bootstrap
</tr>
<tr>
<td>$kendo-picker-outline-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-picker-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the outline focused Picker components.</div></div>
Expand Down Expand Up @@ -24721,9 +24781,9 @@ The following table lists the available variables for customizing the Bootstrap
</tr>
<tr>
<td>$kendo-picker-flat-focus-shadow</td>
<td>List</td>
<td>String</td>
<td><code>$kendo-picker-focus-shadow</code></td>
<td><code>(0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent))</code></td>
<td><code>color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The shadow of the flat focused Picker components.</div></div>
Expand Down
6 changes: 6 additions & 0 deletions packages/bootstrap/scss/core/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// Radii
@use "./border-radii/index.scss" as *;

// Focus indicator
@use "./focus-indicator/index.scss" as *;

@forward "../_variables.scss";

// Variables
Expand Down Expand Up @@ -44,6 +47,9 @@
// Spacing
$default-spacing: $kendo-spacing,
$kendo-spacing: $kendo-spacing !default,
// Focus indicator
$default-focus-indicator: $kendo-focus-indicator,
$kendo-focus-indicator: $kendo-focus-indicator !default,
);

// Global disabled styles
Expand Down
27 changes: 27 additions & 0 deletions packages/bootstrap/scss/core/focus-indicator/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@use "sass:map";

$_default-focus-indicator: (
shadow: (
outset: (
offset-x: 0,
offset-y: 0,
spread: 0,
width: 0.25rem
),
inset: (
inset: true,
offset-x: 0,
offset-y: 0,
spread: 0,
width: 2px
)
),
border: (
width: 1px,
style: solid
),
background: ()
) !default;

$kendo-focus-indicator: $_default-focus-indicator !default;
$kendo-focus-indicator: map.merge($_default-focus-indicator, $kendo-focus-indicator);
2 changes: 1 addition & 1 deletion packages/bootstrap/scss/input/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ $kendo-input-focus-text: $kendo-input-text !default;
$kendo-input-focus-border: k-color(primary-emphasis) !default;
/// The shadow of the focused Input components.
/// @group input
$kendo-input-focus-shadow: 0 0 0 .25rem color-mix(in srgb, k-color(primary) 25%, transparent) !default;
$kendo-input-focus-shadow: color-mix(in srgb, k-color(primary) 25%, transparent) !default;

/// The background color of the disabled Input components.
/// @group input
Expand Down
Loading