diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000000..834e34b1d0
Binary files /dev/null and b/.DS_Store differ
diff --git a/en/.DS_Store b/en/.DS_Store
new file mode 100644
index 0000000000..3cd0d2d66c
Binary files /dev/null and b/en/.DS_Store differ
diff --git a/en/components/.DS_Store b/en/components/.DS_Store
new file mode 100644
index 0000000000..d96b4ceb20
Binary files /dev/null and b/en/components/.DS_Store differ
diff --git a/en/components/accordion.md b/en/components/accordion.md
index 96e65ccc75..c4e9aab700 100644
--- a/en/components/accordion.md
+++ b/en/components/accordion.md
@@ -19,7 +19,7 @@ In it, you can see how to define an `igx-accrodion` and its [expansion panels]({
The Ignite UI for Angular Action Strip component provides an overlay area containing one or more actions allowing additional UI and functionality to be shown on top of a specific target container upon user interaction e.g. hover. The container should be positioned relatively as the Action Strip attempts to overlay it and is itself positioned absolutely. Despite overlapped by an Action Strip, the main interactions and user access to the target container remain available.
- - ## Angular Action Strip Example -Angular Badge is a component used in conjunction with avatars, navigation menus, or other components in an application when a visual notification is needed. Badges are usually designed as icons with a predefined style to communicate information, success, warnings, or errors.
- ## Angular Badge Example @@ -118,6 +117,20 @@ We can change the badge shape through the `shape` attribute setting its value to If everything's done right, you should see the demo sample shown above in your browser. +### Badge Size + +The size of the badge can be controlled using the `--size` variable. It will make sure that the badge sizes proportionally in both directions. Keep in mind, however, that badges containing text values use the `caption` typography style for its font-size and line-height. For that reason, when setting the `--size` of a badge containing text to values below 16px, you will also need to modify its typography. + +Example: +```scss +igx-badge { + --size: 12px; + + font-size: calc(var(--size) / 2); + line-height: normal; +} +``` + ### Badge Icon In addition to material icons, the `igx-badge` component also supports usage of [Material Icons Extended](../components/material-icons-extended.md) and any other custom icon set. To add an icon from the material icons extended set inside your badge component, first you have to register it: @@ -288,55 +301,18 @@ Following the simplest approach, we create a new theme that extends the [`badge- ```scss $custom-badge-theme: badge-theme( - $border-color: white, - $border-width: 1px, - $icon-color: white, - $text-color: black, - $shadow: 3px 2px 5px 0px rgba(0,0,0,0.4) + $border-radius: 15px, + $icon-color: white, + $text-color: black, ); ``` -### Including Themes - - - -The last step is to **include** the component theme in our application. - -If `$legacy-support` is set to `true`, include the **component theme** like that: - -```scss - @include badge($custom-badge-theme); -``` ->[!NOTE] ->If the component is using an [`Emulated`](themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to `penetrate` this encapsulation using `::ng-deep` - -```scss -:host { - ::ng-deep { - @include badge($custom-badge-theme); - } -} -``` - - - -If `$legacy-support` is set to `false`(default), include the component **css variables** like that: +To include the new theme we use the `css-vars` mixin: ```scss @include css-vars($custom-badge-theme); ``` ->[!NOTE] ->If the component is using an [`Emulated`](themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, you still have to use `:host` because you need a global selector in order to override the variables. - -```scss -:host { - @include css-vars($custom-badge-theme); -} -``` - -Don't forget to include the themes in the same way as it was demonstrated above. - ### DemoThe Ignite UI for Angular Date Time Editor Directive allows the user to set and edit the date and time in a chosen input element. The user can edit the date or time portion, using an editable masked input. Additionally, one can specify a desired display and input format, as well as min and max values to utilize validation.
- ## Angular Date Time Editor Directive Example @@ -109,7 +108,7 @@ Time-only strings are normally not defined in the `ECMA` specification, however ##### Full ISO string If a full `ISO` string is bound, the directive will parse it only if all elements required by [`Date.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#date_time_string_format) are provided. -All falsy values, including `InvalidDate` will be parsed as `null`. Incomplete date-only, time-only, or full `ISO` strings will be parsed as `InvalidDate`. +All false values, including `InvalidDate` will be parsed as `null`. Incomplete date-only, time-only, or full `ISO` strings will be parsed as `InvalidDate`. ### Keyboard Navigation Date Time Editor Directive has intuitive keyboard navigation that makes it easy to increment, decrement, or jump through different DateParts among others without having to touch the mouse. diff --git a/en/components/dialog.md b/en/components/dialog.md index 2bd2e43e5b..fe4960bde9 100644 --- a/en/components/dialog.md +++ b/en/components/dialog.md @@ -6,7 +6,6 @@ _keywords: Ignite UI for Angular, UI controls, Angular widgets, web widgets, UI # Angular Dialog Window Component OverviewUse the Ignite UI for Angular Dialog Window component to display messages or present forms for users to fill out. The component opens a dialog window centered on top of app content. You can also provide a standard alert message that users can cancel.
- ## Angular Dialog Window Example @@ -266,10 +265,10 @@ Following the simplest approach, we create a new theme that extends the [`dialog ```scss $my-dialog-theme: dialog-theme( - $background: #011627, - $title-color: #ECAA53, - $message-color: #FEFEFE, - $border-radius: .3, + $background: #011627, + $title-color: #ECAA53, + $message-color: #FEFEFE, + $border-radius: .3, ); ``` @@ -280,9 +279,9 @@ Since the dialog window uses the [`IgxOverlayService`](overlay.md), in order for ```htmlThe divider component enables users to separate content both horizontally and vertically.
- ## Angular Divider Example @@ -116,7 +115,7 @@ To inset the divider, set the `middle` attribute of the divider to `true` and prThe Ignite UI for Angular Drop Down is a component, which displays a toggleable list of predefined values and allows users to easily select a single option item with a click. It can be quickly configured to act as a drop down menu or you can simply use it to deliver more useful visual information by grouping data. With grouping you can use both flat and hierarchical data. Drop Down component allows declarative binding, which makes it possible for you to embed additional content and links. This also leaves room for further UI customization and styling of the Angular drop down list appearance. In addition to this, it is packed with key features like keyboard dropdown navigation and virtualization.
- ## Angular Drop Down Example @@ -56,23 +56,25 @@ import { IGX_DROP_DOWN_DIRECTIVES, IgxToggleActionDirective, IgxButtonDirective // import { IGX_DROP_DOWN_DIRECTIVES, IgxToggleActionDirective, IgxButtonDirective } from '@infragistics/igniteui-angular'; for licensed package @Component({ - selector: 'app-home', - template: ` -The Ignite UI for Angular igxForOf directive is an alternative to ngForOf for templating large amounts of data. It uses virtualization behind the scenes to optimize DOM rendering and memory consumption.
- - ## Angular Virtual For Directive Example @@ -209,7 +207,7 @@ public ngAfterViewInit() { } ``` -When requesting data you can take advantage of the [`IgxForOfState`]({environment:angularApiUrl}/classes/igxforofdirective.html#state) interface, which provides the [`startIndex`]({environment:angularApiUrl}/classes/igxforofdirective.html#state.startindex) and [`chunkSize`]({environment:angularApiUrl}/classes/igxforofdirective.html#state.chunkSize) properties. Note that initialy the chunkSize will be 0, so you have to specify the size of the first loaded chunk (the best value is the initial [`igxForContainerSize`]({environment:angularApiUrl}/classes/igxforofdirective.html#igxforcontainersize) divided by the [`igxForItemSize`]({environment:angularApiUrl}/classes/igxforofdirective.html#igxForItemSize)). +When requesting data you can take advantage of the [`IgxForOfState`]({environment:angularApiUrl}/classes/igxforofdirective.html#state) interface, which provides the [`startIndex`]({environment:angularApiUrl}/classes/igxforofdirective.html#state.startindex) and [`chunkSize`]({environment:angularApiUrl}/classes/igxforofdirective.html#state.chunkSize) properties. Note that initially the chunkSize will be 0, so you have to specify the size of the first loaded chunk (the best value is the initial [`igxForContainerSize`]({environment:angularApiUrl}/classes/igxforofdirective.html#igxforcontainersize) divided by the [`igxForItemSize`]({environment:angularApiUrl}/classes/igxforofdirective.html#igxForItemSize)). ```typescript public getData(data?: IForOfState, cb?: (any) => void): any { diff --git a/en/components/grid/groupby.md b/en/components/grid/groupby.md index 79f59e3a51..67b0ebf0b3 100644 --- a/en/components/grid/groupby.md +++ b/en/components/grid/groupby.md @@ -61,7 +61,7 @@ grid.groupBy({ fieldName: 'ProductName', dir: SortingDirection.Desc, ignoreCase: ``` >[!NOTE] -> Up until now, grouping/sorting worked in conjuction with each other. In 13.2 version, a new behavior which decouples gropuing from sorting is introduced. For example - clearing the grouping will not clear sorting expressions in the grid or vice versa. Still, if a column is both sorted and grouped, grouped expressions take precedence. +> Up until now, grouping/sorting worked in conjunction with each other. In 13.2 version, a new behavior which decouples grouping from sorting is introduced. For example - clearing the grouping will not clear sorting expressions in the grid or vice versa. Still, if a column is both sorted and grouped, grouped expressions take precedence. ### Expand/Collapse API @@ -201,7 +201,7 @@ The grouping UI supports the following keyboard interactions: - SHIFT + RIGHT - moves the focused chip right, changing the grouping order, if possible - SPACE - changes the sorting direction - DELETE - ungroups the field - - The seperate elements of the chip are also focusable and can be interacted with using the ENTER key. + - The separate elements of the chip are also focusable and can be interacted with using the ENTER key. ## Angular Grid Custom Group By @@ -312,7 +312,7 @@ public sortByGroup() { ## Styling -The igxGrid allows styling through the [Ignite UI for Angular Theme Library](../themes/sass/component-themes.md). The grid's [theme]({environment:sassApiUrl}/index.html#function-grid-theme) exposes a wide variety of properties, which allow the customization of all the features of the grid. +The igxGrid allows styling through the [`Ignite UI for Angular Theme Library`](../themes/sass/component-themes.md). The grid's [`grid-theme`]({environment:sassApiUrl}/index.html#function-grid-theme) exposes a wide variety of properties, which allow the customization of all the features of the grid. In the below steps, we are going through the steps of customizing the grid's Group By styling. @@ -334,101 +334,110 @@ Next, create a new theme, that extends the [`grid-theme`]({environment:sassApiUr ```scss $custom-theme: grid-theme( - /* Group By properties that affect styling */ - $group-row-background: #494949, - $group-row-selected-background: #383838, - $group-label-column-name-text: #f8f8f8, - $group-label-icon: #FFCD0F, - $group-label-text: #f8f8f8, - $group-count-background: #FFCD0F, - $group-count-text-color: #000, - $expand-icon-color: #FFCD0F, - $expand-icon-hover-color: rgb(223, 181, 13), - $cell-active-border-color: #FFCD0F, - $row-selected-background: #fff6d3, - $row-selected-text-color: #000, - $drop-indicator-color: #FFCD0F - /* add other features properties here... */ + $group-row-background: #494949, + $group-row-selected-background: #383838, + $group-label-column-name-text: #f8f8f8, + $group-label-icon: #ffcd0f, + $group-label-text: #f8f8f8, + $group-count-background: #ffcd0f, + $group-count-text-color: #000, + $expand-icon-color: #ffcd0f, + $expand-icon-hover-color: rgb(223, 181, 13), + $cell-active-border-color: #ffcd0f, + $row-selected-background: #fff6d3, + $row-selected-text-color: #000, + $drop-indicator-color: #ffcd0f ); /* Chip theme will style the chips in the Group By area */ $custom-chips-theme: chip-theme( - $background: #494949, - $text-color: #f8f8f8, - $hover-text-color: #e7e7e7 + $background: #494949, + $text-color: #f8f8f8, + $hover-text-color: #e7e7e7 ); ``` ### Defining a custom color palette -In the approach that we described above, the color values were hardcoded. Alternatively, you can achieve greater flexibility, using the [`igx-palette`]({environment:sassApiUrl}/index.html#function-igx-palette) and [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) functions. -`igx-palette` generates a color palette, based on provided primary and secondary colors. +In the approach that we described above, the color values were hardcoded. Alternatively, you can achieve greater flexibility, using the [`palette`]({environment:sassApiUrl}/index.html#function-palette) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. +`palette` generates a color palette, based on provided primary, secondary and surface colors. ```scss $black-color: #292826; -$yellow-color: #FFCD0F; +$yellow-color: #ffcd0f; +$grey-color: #efefef; $custom-palette: palette( - $primary: $black-color, - $secondary: $yellow-color + $primary: $black-color, + $secondary: $yellow-color, + $surface: $grey-color ); ``` -After a custom palette has been generated, the `igx-color` function can be used to obtain different varieties of the primary and the secondary colors. +After a custom palette has been generated, the `color` function can be used to obtain different varieties of the primary and the secondary colors. ```scss $custom-theme: grid-theme( - $group-row-background: color($custom-palette, "primary", 300), - $group-row-selected-background: color($custom-palette, "primary", 400), - $group-label-column-name-text:contrast-color($custom-palette, "primary", 500), - $group-label-icon: color($custom-palette, "secondary", 600), - $group-label-text:contrast-color($custom-palette, "primary", 500), - $group-count-background: color($custom-palette, "secondary", 600), - $group-count-text-color: color($custom-palette, "primary", 400), - $expand-icon-color: color($custom-palette, "secondary", 600), - $expand-icon-hover-color: color($custom-palette, "secondary", 300), - $cell-active-border-color: color($custom-palette, "secondary", 600) + $group-row-background: color($custom-palette, "primary", 300), + $group-row-selected-background: color($custom-palette, "primary", 400), + $group-label-column-name-text:contrast-color($custom-palette, "primary", 500), + $group-label-icon: color($custom-palette, "secondary", 600), + $group-label-text:contrast-color($custom-palette, "primary", 500), + $group-count-background: color($custom-palette, "secondary", 600), + $group-count-text-color: color($custom-palette, "primary", 400), + $expand-icon-color: color($custom-palette, "secondary", 600), + $expand-icon-hover-color: color($custom-palette, "secondary", 300), + $cell-active-border-color: color($custom-palette, "secondary", 600) ); $custom-chips-theme: chip-theme( - $background: color($custom-palette, "primary", 300), - $text-color:contrast-color($custom-palette, "primary", 500), - $hover-text-color:contrast-color($custom-palette, "primary", 600) + $background: color($custom-palette, "primary", 300), + $text-color:contrast-color($custom-palette, "primary", 500), + $hover-text-color:contrast-color($custom-palette, "primary", 600) ); ``` ### Defining custom schemas You can go even further and build flexible structure that has all the benefits of a [**schema**](../themes/sass/schemas.md). The **schema** is the recipe of a theme. -Extend one of the two predefined schemas, that are provided for every component. In our case, we would use `$_light_grid`. +Extend one of the two predefined schemas, that are provided for every component. In our case, we would use [`light-grid`]({environment:sassApiUrl}/index.html#variable-light-grid). + ```scss -$custom-grid-schema: extend($_light-grid,( - group-row-background: (igx-color:('secondary', 100)), - group-row-selected-background: (igx-color:('primary', 400)), - group-label-column-name-text: (igx-color:('primary', 600)), - group-label-icon: (igx-color:('primary', 600)), - group-label-text: (igx-color:('secondary', 700)), - group-count-background: (igx-color:('primary', 600)), - group-count-text-color: (igx-color:('secondary', 400)), - expand-icon-color: (igx-color:('primary', 600)), - expand-icon-hover-color: (igx-color:('primary', 400)) -)); +$custom-grid-schema: extend( + $light-grid, + ( + group-row-background: (color:('secondary', 100)), + group-row-selected-background: (color:('primary', 400)), + group-label-column-name-text: (color:('primary', 600)), + group-label-icon: (color:('primary', 600)), + group-label-text: (color:('secondary', 700)), + group-count-background: (color:('primary', 600)), + group-count-text-color: (color:('secondary', 400)), + expand-icon-color: (color:('primary', 600)), + expand-icon-hover-color: (color:('primary', 400)) + ) +); ``` -In order for the custom schema to be applied, either `light`, or `dark` globals has to be extended. The whole process is actually supplying a component with a custom schema and adding it to the respective component theme afterwards. +In order for the custom schema to be applied, either ([`light`]({environment:sassApiUrl}/index.html#variable-light-material-schema) or [`dark`]({environment:sassApiUrl}/index.html#variable-dark-material-schema)) globals has to be extended. The whole process is actually supplying a component with a custom schema and adding it to the respective component theme afterwards. + ```scss -$my-custom-schema: extend($light-schema, ( - igx-grid: $custom-grid-schema -)); +$my-custom-schema: extend( + $light-material-schema, + ( + grid: $custom-grid-schema + ) +); $custom-theme: grid-theme( - $palette: $custom-palette, - $schema: $my-custom-schema + $palette: $custom-palette, + $schema: $my-custom-schema ); ``` ### Applying the custom theme The easiest way to apply your theme is with a `sass` `@include` statement in the global styles file: + ```scss -@include grid($custom-theme); -@include chip($custom-chips-theme); +@include css-vars($custom-theme); +@include css-vars($custom-chips-theme); ``` ### Scoped component theme @@ -438,16 +447,17 @@ In order for the custom theme to affect only specific component, you can move al This way, due to Angular's [ViewEncapsulation](https://angular.io/api/core/Component#encapsulation), your styles will be applied only to your custom component. >[!NOTE] - >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to penetrate this encapsulation using `::ng-deep` in order to style the grid. - >[!NOTE] - >Wrap the statement inside of a `:host` selector to prevent your styles from affecting elements *outside of* our component: + >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to penetrate this encapsulation using `::ng-deep` in order to style the components which are inside the grid. + +In our example, we need to use `::ng-deep` for our chip theme: ```scss +@include css-vars($custom-theme); + :host { - ::ng-deep { - @include grid($custom-theme); - @include chip($custom-chips-theme); - } + ::ng-deep { + @include chip($custom-chips-theme); + } } ``` @@ -463,7 +473,6 @@ This way, due to Angular's [ViewEncapsulation](https://angular.io/api/core/Compo >[!NOTE] >The sample will not be affected by the selected global theme from `Change Theme`. - ## Known Limitations |Limitation|Description| diff --git a/en/components/grids_templates/advanced-filtering.md b/en/components/grids_templates/advanced-filtering.md index aedbcfcb2f..223c7a913e 100644 --- a/en/components/grids_templates/advanced-filtering.md +++ b/en/components/grids_templates/advanced-filtering.md @@ -191,7 +191,7 @@ The advanced filtering dialog takes its background color from the grid's theme, ```scss $custom-grid: grid-theme( - $filtering-row-background: #FFCD0F + $filtering-row-background: #ffcd0f ); ``` @@ -199,274 +199,138 @@ Since we have other components inside the advanced filtering dialog, such as but ```scss $custom-button: button-theme( - $disabled-color: gray, - ... + $disabled-color: gray, + ... ); $custom-button-group: button-group-theme( - $item-background: #292826, - ... + $item-background: #292826, + ... ); $custom-input-group: input-group-theme( - $box-background: #4a4a4a, - ... + $box-background: #4a4a4a, + ... ); $custom-chip: chip-theme( - $background: #FFCD0F, - ... + $background: #ffcd0f, + ... ); $custom-drop-down: drop-down-theme( - $background-color: #292826, - ... + $background-color: #292826, + ... ); ``` +>[!NOTE] +>Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`palette`]({environment:sassApiUrl}/index.html#function-palette) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. + In this example we only changed some of the parameters for the listed components, but the [`button-theme`]({environment:sassApiUrl}/index.html#function-button-theme), [`button-group-theme`]({environment:sassApiUrl}/index.html#function-button-group-theme), [`chip-theme`]({environment:sassApiUrl}/index.html#function-chip-theme), [`drop-down-theme`]({environment:sassApiUrl}/index.html#function-drop-down-theme), [`input-group-theme`]({environment:sassApiUrl}/index.html#function-input-group-theme) themes provide way more parameters to control their respective styling. The last step is to **include** the component mixins, each with its respective theme. We will also add some styles for other elements inside the advanced filtering dialog. ```scss -@include grid($custom-grid); +@include css-vars($custom-grid); igx-advanced-filtering-dialog { - @include button($custom-button); - @include button-group($custom-button-group); - @include input-group($custom-input-group); - @include chip($custom-chip); - @include drop-down($custom-drop-down); - .igx-filter-empty__title { - color: #FFCD0F - } - .igx-advanced-filter__header { - color: #FFCD0F - } - .igx-filter-tree__expression-actions igx-icon { - color: #FFCD0F - } - .igx-filter-tree__expression-actions igx-icon:hover { - color: #ffe482 - } - .igx-filter-tree__expression-actions igx-icon:focus { - color: #ffe482 - } - .igx-filter-contextual-menu { - border: 1px solid #FFCD0F - } - .igx-filter-contextual-menu__close-btn { - position: absolute !important; - background: #292826 !important; - border-color: #FFCD0F !important; - } - .igx-input-group__input::placeholder { - color: gray; - } + @include css-vars($custom-button); + @include css-vars($custom-button-group); + @include css-vars($custom-input-group); + @include css-vars($custom-chip); + @include css-vars($custom-drop-down); + + .igx-filter-empty__title { + color: #ffcd0f + } + + .igx-advanced-filter__header { + color: #ffcd0f + } + + .igx-filter-tree__expression-actions igx-icon { + color: #ffcd0f + } + + .igx-filter-tree__expression-actions igx-icon:hover { + color: #ffe482 + } + + .igx-filter-tree__expression-actions igx-icon:focus { + color: #ffe482 + } + + .igx-filter-contextual-menu { + border: 1px solid #ffcd0f + } + + .igx-filter-contextual-menu__close-btn { + position: absolute !important; + background: #292826 !important; + border-color: #ffcd0f !important; + } + + .igx-input-group__input::placeholder { + color: gray; + } } ``` >[!NOTE] ->We scope most of the components' mixins within `igx-advanced-filtering-dialog`, so that these custom themes will affect only components nested in the advanced filtering dialog. Otherwise, other buttons, chips, inputs and dropdowns in the application would be affected too. +>We scope most of the components' mixins within `advanced-filtering-dialog`, so that these custom themes will affect only components nested in the advanced filtering dialog. Otherwise, other buttons, chips, inputs and dropdowns in the application would be affected too. >[!NOTE] >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to `penetrate` this encapsulation using `::ng-deep`: ```scss :host { - ::ng-deep { - @include drop-down($custom-drop-down); - @include grid($custom-grid); - igx-advanced-filtering-dialog { - @include button($custom-button); - @include button-group($custom-button-group); - @include input-group($custom-input-group); - @include chip($custom-chip); - .igx-input-group__input::placeholder { - color: gray; - } - .igx-filter-empty__title { - color: #FFCD0F - } - .igx-advanced-filter__header { - color: #FFCD0F - } - .igx-filter-tree__expression-actions igx-icon { - color: #FFCD0F - } - .igx-filter-tree__expression-actions igx-icon:hover { - color: #ffe482 - } - .igx-filter-tree__expression-actions igx-icon:focus { - color: #ffe482 - } - .igx-filter-contextual-menu { - border: 1px solid #FFCD0F - } - .igx-filter-contextual-menu__close-btn { - position: absolute !important; - background: #292826 !important; - border-color: #FFCD0F !important; - } - } - } -} -``` - -### Defining a color palette - -Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`igx-palette`]({environment:sassApiUrl}/index.html#function-igx-palette) and [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) functions. - -`igx-palette` generates a color palette based on the primary and secondary colors that are passed: - -```scss -$yellow-color: #FFCD0F; -$black-color: #292826; -$dark-palette: palette($primary: $yellow-color, $secondary: $black-color); -``` -And then with [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) we can easily retrieve color from the palette. - -```scss -$custom-grid: grid-theme( - $filtering-row-background: color($dark-palette, "secondary", 400) -); - -$custom-button: button-theme( - $disabled-color: color($dark-palette, "secondary", 100), - ... -); - -$custom-button-group: button-group-theme( - $item-background: color($dark-palette, "secondary", 400), - ... -); - -$custom-input-group: input-group-theme( - $box-background: color($dark-palette, "secondary", 200), - ... -); - -$custom-chip: chip-theme( - $background: color($dark-palette, "primary", 400), - ... -); - -$custom-drop-down: drop-down-theme( - $background-color: color($dark-palette, "secondary", 400), - ... -); -``` - ->[!NOTE] ->The `igx-color` and `igx-palette` are powerful functions for generating and retrieving colors. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. - -### Using Schemas - -Going further with the theming engine, you can build a robust and flexible structure that benefits from [**schemas**](../themes/sass/schemas.md). A **schema** is a recipe of a theme. - -Extend one of the two predefined schemas, that are provided for every component, in this case - [`light-grid`]({environment:sassApiUrl}/index.html#variable-_light-grid), [`light-button`]({environment:sassApiUrl}/index.html#variable-_light-button), [`light-button-group`]({environment:sassApiUrl}/index.html#variable-_light-button-group), [`light-chip`]({environment:sassApiUrl}/index.html#variable-_light-chip), [`light-input-group`]({environment:sassApiUrl}/index.html#variable-_light-input-group) and [`light-drop-down`]({environment:sassApiUrl}/index.html#variable-_light-drop-down) schemas: - -```scss -$grid-dark-palette: palette($primary: #11bd7b, $secondary: #e32057, $info: $black-color); - -$custom-grid-schema: extend($_light-grid, - ( - filtering-row-background:( - color: ("info") - ) - ) -); - -$custom-button-schema: extend($_light-button, - ( - disabled-color:( - color: ("secondary", 100) - ), - ... - ) -); - -$custom-button-group-schema: extend($_light-button-group, - ( - item-background:( - color: ("secondary", 400) - ), - ... - ) -); - -$custom-input-group-schema: extend($_light-input-group, - ( - box-background:( - color: ("secondary", 200) - ), - ... - ) -); - -$custom-chip-schema: extend($_light-chip, - ( - background:( - color: ("primary", 400) - ), - ... - ) -); - -$custom-drop-down-schema: extend($_light-drop-down, - ( - background-color:( - color: ("secondary", 400) - ), - ... - ) -); -``` - -In order to apply our custom schemas we have to **extend** one of the globals ([`light`]({environment:sassApiUrl}/index.html#variable-light-schema) or [`dark`]({environment:sassApiUrl}/index.html#variable-dark-schema)), which is basically pointing out the components with a custom schema, and after that add it to the respective component themes: - -```scss -$custom-light-schema: extend($light-schema,( - igx-grid: $custom-grid-schema, - igx-button: $custom-button-schema, - igx-button-group: $custom-button-group-schema, - igx-input-group: $custom-input-group-schema, - igx-chip: $custom-chip-schema, - igx-drop-down: $custom-drop-down-schema -)); + ::ng-deep { + @include css-vars($custom-drop-down); + @include css-vars($custom-grid); + igx-advanced-filtering-dialog { + @include css-vars($custom-button); + @include css-vars($custom-button-group); + @include css-vars($custom-input-group); + @include css-vars($custom-chip); + + .igx-input-group__input::placeholder { + color: gray; + } -$custom-grid: grid-theme( - $palette: $grid-dark-palette, - $schema: $custom-light-schema -); + .igx-filter-empty__title { + color: #ffcd0f + } -$custom-button: button-theme( - $palette: $dark-palette, - $schema: $custom-light-schema -); + .igx-advanced-filter__header { + color: #ffcd0f + } -$custom-button-group: button-group-theme( - $palette: $dark-palette, - $schema: $custom-light-schema -); + .igx-filter-tree__expression-actions igx-icon { + color: #ffcd0f + } -$custom-input-group: input-group-theme( - $palette: $dark-palette, - $schema: $custom-light-schema -); + .igx-filter-tree__expression-actions igx-icon:hover { + color: #ffe482 + } -$custom-chip: chip-theme( - $palette: $dark-palette, - $schema: $custom-light-schema -); + .igx-filter-tree__expression-actions igx-icon:focus { + color: #ffe482 + } -$custom-drop-down: drop-down-theme( - $palette: $dark-palette, - $schema: $custom-light-schema -); + .igx-filter-contextual-menu { + border: 1px solid #ffcd0f + } + + .igx-filter-contextual-menu__close-btn { + position: absolute !important; + background: #292826 !important; + border-color: #ffcd0f !important; + } + } + } +} ``` -Don't forget to include the themes in the same way as it was demonstrated above. - ### Demo @@if (igxName === 'IgxGrid') { diff --git a/en/components/grids_templates/cascading-combos.md b/en/components/grids_templates/cascading-combos.md index 4e5fd4bf18..a6735e3265 100644 --- a/en/components/grids_templates/cascading-combos.md +++ b/en/components/grids_templates/cascading-combos.md @@ -20,7 +20,7 @@ The sample below demonstrates how `Grid` works with nested `Cascading Combos`. ## Setup In order enable column editing, make sure [`editable`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#editable) property is set to **true**. -Once the column editig is enabled, you can start by adding your [Single Select ComboBox](../simple-combo.md). Please note that here in order to have only one single selection available, you will need to use [igxSimpleCombo](../simple-combo.md) instead of modifying the igxCombo. +Once the column editing is enabled, you can start by adding your [Single Select ComboBox](../simple-combo.md). Please note that here in order to have only one single selection available, you will need to use [igxSimpleCombo](../simple-combo.md) instead of modifying the igxCombo. To get started with the [Simple ComboBox component](../simple-combo.md#angular-simple-combobox-features), first you need to import the `IgxSimpleComboModule` in your **app.module.ts** file: diff --git a/en/components/grids_templates/cell-editing.md b/en/components/grids_templates/cell-editing.md index 27ba89c7b2..42dbdfd0ec 100644 --- a/en/components/grids_templates/cell-editing.md +++ b/en/components/grids_templates/cell-editing.md @@ -514,11 +514,11 @@ The result of the above validation being applied to our `@@igSelector` can be se ## Styling -The @@igxName allows for its cells to be styled through the [Ignite UI for Angular Theme Library](../themes/sass/component-themes.md). The grid's [theme]({environment:sassApiUrl}/index.html#function-grid-theme) exposes a wide range of properties, which allow users to style many different aspects of the grid. +The @@igxName allows for its cells to be styled through the [`Ignite UI for Angular Theme Library`](../themes/sass/component-themes.md). The grid's [`grid-theme`]({environment:sassApiUrl}/index.html#function-grid-theme) exposes a wide range of properties, which allow users to style many different aspects of the grid. In the below steps, we are going to go over how you can style the grid's cell in edit mode and how you can scope those styles. -In order to use the [Ignite UI Theming Library](../themes/sass/component-themes.md), we must first import the theme `index` file in our global styles: +In order to use the [`Ignite UI Theming Library`](../themes/sass/component-themes.md), we must first import the theme `index` file in our global styles: ### Importing style library @@ -532,13 +532,18 @@ Now we can make use of all of the functions exposed by the Ignite UI for Angular ### Defining a palette -After we've properly imported the index file, we create a custom palette that we can use. Let's define two colors that we like and use them to build a palette with [`igx-palette`](../themes/palettes.md): +After we've properly imported the index file, we create a custom palette that we can use. Let's define three colors that we like and use them to build a palette with [`palette`](../themes/palettes.md): ```scss $white: #fff; $blue: #4567bb; +$gray: #efefef; -$color-palette: palette($primary: $white, $secondary: $blue); +$color-palette: palette( + $primary: $white, + $secondary: $blue, + $surface: $gray +); ``` ### Defining themes @@ -547,10 +552,10 @@ We can now define the theme using our palette. The cells are styled by the [`gri ```scss $custom-grid-theme: grid-theme( - $cell-editing-background: $blue, - $cell-edited-value-color: $white, - $cell-active-border-color: $white, - $edit-mode-color: color($color-palette, "secondary", 200) + $cell-editing-background: $blue, + $cell-edited-value-color: $white, + $cell-active-border-color: $white, + $edit-mode-color: color($color-palette, "secondary", 200) ); ``` @@ -562,31 +567,9 @@ The easiest way to apply our theme is with a `sass` `@include` statement in the @include grid($custom-grid-theme); ``` -This way, the theme will apply to **all** grids in our application. If we wish to apply this custom styling only to a specific component, we need to scope the theme. - -### Scoped component theme - -In order for the custom theme to affect only our specific component, we can move all of the styles we just defined from the global styles file to our custom component's style file (including the [import](#importing-style-library) of the `index` file). - -This way, due to Angular's [`ViewEncapsulation`](https://angular.io/api/core/Component#encapsulation), our styles will be applied only to our custom component. - - >[!NOTE] - >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to penetrate this encapsulation using `::ng-deep` in order to style the grid. - >[!NOTE] - >We wrap the statement inside of a `:host` selector to prevent our styles from affecting elements *outside of* our component: - -```scss -:host { - ::ng-deep { - @include grid($custom-grid-theme); - } - } -} -``` - -### Styling Demo +### Demo -In addition to the steps above, we can also style the controls that are used for the cells' editing templates: [`igx-input-group`](../input-group.md#styling), [`igx-datepicker`](../date-picker.md#styling) & [`igx-checkbox`](../checkbox.md#angular-checkbox-styling) +In addition to the steps above, we can also style the controls that are used for the cells' editing templates: [`input-group`](../input-group.md#styling), [`datepicker`](../date-picker.md#styling) & [`checkbox`](../checkbox.md#styling) @@if (igxName === 'IgxGrid') { @@ -627,7 +610,7 @@ In addition to the steps above, we can also style the controls that are used for @@if (igxName !== 'IgxTreeGrid') {* [IgxGridRow]({environment:angularApiUrl}/classes/igxgridrow.html)}@@if (igxName === 'IgxTreeGrid') {* [IgxTreeGridRow]({environment:angularApiUrl}/classes/igxtreegridrow.html)} * [IgxInputDirective]({environment:angularApiUrl}/classes/igxinputdirective.html) * [IgxDatePickerComponent]({environment:angularApiUrl}/classes/igxdatepickercomponent.html) -* [IgxDatePickerComponent Styles]({environment:sassApiUrl}/index.html#function-igx-date-picker-theme) +* [IgxDatePickerComponent Styles]({environment:sassApiUrl}/index.html#function-date-picker-theme) * [IgxCheckboxComponent]({environment:angularApiUrl}/classes/igxcheckboxcomponent.html) * [IgxCheckboxComponent Styles]({environment:sassApiUrl}/index.html#function-checkbox-theme) * [IgxOverlay]({environment:angularApiUrl}/interfaces/overlaysettings.html) diff --git a/en/components/grids_templates/cell-selection.md b/en/components/grids_templates/cell-selection.md index 774784accf..3f8b4ff513 100644 --- a/en/components/grids_templates/cell-selection.md +++ b/en/components/grids_templates/cell-selection.md @@ -262,9 +262,9 @@ The multi-cell selection is index based (DOM elements selection). } -## Styling Guidelines +## Styling -The theme engine exposes properties that allows us to style the `range of selected cells`. +The theme engine exposes properties that allow us to style the **range of selected cells**. ### Import theme @@ -279,22 +279,26 @@ To get started with styling the selection, we need to import the `index` file, w ### Define colors -Once done, we can make use of the [`igx-contrast-color`]({environment:sassApiUrl}/index.html#function-igx-contrast-color) and [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) functions. With them, we define the colors we would like to use for our selection range: +Once done, we can make use of the [`contrast-color`]({environment:sassApiUrl}/index.html#function-contrast-color) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. With them, we define the colors we would like to use for our selection range: + ```scss - $text-color:contrast-color($default-palette, 'primary', 900); - $background-color: color($default-palette, "primary", 900); - $border-yellow: #f2c43c; +$text-color: contrast-color($color: 'primary', $variant: 900); +$background-color: color($color: "primary", $variant: 900); +$border-yellow: #f2c43c; ``` +>[!NOTE] +>If we don't want to use the `contrast-color` and `color` functions, we can always hardcode the color values. + ### Create custom theme Next we create a new theme that extends the [`grid-theme`]({environment:sassApiUrl}/index.html#function-grid-theme) passing our `text-color`, `background-color` and `border-yellow` variables as `$cell-selected-text-color`, `$cell-selected-background` and `$cell-active-border-color`, respectively: ```scss $custom-grid-theme: grid-theme( - $cell-selected-text-color: $text-color, - $cell-active-border-color: $border-yellow, - $cell-selected-background: $background-color + $cell-selected-text-color: $text-color, + $cell-active-border-color: $border-yellow, + $cell-selected-background: $background-color ); ``` @@ -303,22 +307,9 @@ $custom-grid-theme: grid-theme( Afterwards, all we need to do is include the mixin in our component's style (could also be in the app styles), so that our @@igSelector uses the newly created theme instead of the default one: ```scss - @include grid($custom-grid-theme); +@include css-vars($custom-grid-theme); ``` - >[!NOTE] - >If the component is using an [`Emulated ViewEncapsulation`](../themes/sass/component-themes.md#view-encapsulation), it is necessary to penetrate this encapsulation using `::ng-deep`. - > We scope the style under `:host` selector so as not to affect any other grids we might have in our application. - - ```scss - :host { - ::ng-deep { - @include grid($custom-grid-theme); - } - } -``` - - With the custom theme applied, the selected grid cells are highlighted with our selected colors: @@if (igxName === 'IgxGrid'){ diff --git a/en/components/grids_templates/column-hiding.md b/en/components/grids_templates/column-hiding.md index 344ef29f95..ffd762e1d4 100644 --- a/en/components/grids_templates/column-hiding.md +++ b/en/components/grids_templates/column-hiding.md @@ -474,130 +474,53 @@ By using the simplest approach, we create a new theme that extends the [`column- ```scss $custom-column-actions-theme: column-actions-theme( - $background-color: steelblue, - $title-color: gold + $background-color: #292826, + $title-color: #ffcd0f ); ``` As seen, the `column-actions-theme` only controls colors for the column actions container, but does not affect the buttons, checkboxes and the input-group inside of it. Let's say we want to style the buttons as well, so we will create a new button theme: ```scss -$custom-button: button-theme($flat-text-color: gold, $disabled-color: black); +$custom-button: button-theme( + $foreground: #292826, + $disabled-foreground: rgba(255, 255, 255, .54) +); ``` +>[!NOTE] +>Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`palette`]({environment:sassApiUrl}/index.html#function-palette) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. + In this example we only changed the text-color of the flat buttons and the button disabled color, but the [`button-theme`]({environment:sassApiUrl}/index.html#function-button-theme) provides way more parameters to control the button style. The last step is to **include** the component mixins, each with its respective theme: ```scss -@include column-actions($custom-column-actions-theme); +@include css-vars($custom-column-actions-theme); + .igx-column-actions { - @include button($custom-button); + @include css-vars($custom-button); } ``` >[!NOTE] ->We scope the **igx-button** mixin within `.igx-column-actions`, so that only the column hiding buttons would be styled. Otherwise other buttons in the grid would be affected too. +>We include the created **button-theme** within `.igx-column-actions`, so that only the column hiding buttons would be styled. Otherwise other buttons in the grid would be affected too. - >[!NOTE] - >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to `penetrate` this encapsulation using `::ng-deep`: +>[!NOTE] +>If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to `penetrate` this encapsulation using `::ng-deep` for the components inside the column action component (buttons, checkboxes ...etc): ```scss +@include css-vars($custom-column-actions-theme); + :host { - ::ng-deep { - @include column-actions($custom-column-actions-theme); - .igx-column-actions { - @include button($custom-button); - } + ::ng-deep { + .igx-column-actions { + @include css-vars($custom-button); } + } } ``` -### Defining a color palette - -Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`igx-palette`]({environment:sassApiUrl}/index.html#function-igx-palette) and [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) functions. - -`igx-palette` generates a color palette based on the primary and secondary colors that are passed: - -```scss -$yellow-color: gold; -$blue-color: steelblue; - -$custom-palette: palette($primary: $blue-color, $secondary: $yellow-color); -``` - -And then with [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) we can easily retrieve color from the palette. - -```scss -$custom-column-actions-theme: column-actions-theme( - $palette: $custom-palette, - $title-color: color($custom-palette, "secondary", 400), - $background-color: color($custom-palette, "primary", 200) -); - -$custom-button: button-theme( - $palette: $custom-palette, - $flat-text-color: color($custom-palette, "secondary", 400), - $disabled-color: black -); -``` - ->[!NOTE] ->The `igx-color` and `igx-palette` are powerful functions for generating and retrieving colors. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. - -### Using Schemas - -Going further with the theming engine, you can build a robust and flexible structure that benefits from [**schemas**](../themes/sass/schemas.md). A **schema** is a recipe of a theme. - -```scss -// Extending the dark column actions schema -$custom-column-actions-schema: extend($_dark-column-actions, - ( - title-color:( - color: ("secondary", 400) - ), - background-color:( - color: ("primary", 200) - ) - ) -); -// Extending the dark button schema -$custom-button-schema: extend($_dark-button, - ( - flat-text-color:( - color:("secondary", 500) - ), - disabled-color:( - color:("primary", 700) - ) - ) -); -``` - -In order to apply our custom schemas we have to **extend** one of the globals ([`light`]({environment:sassApiUrl}/index.html#variable-light-schema) or [`dark`]({environment:sassApiUrl}/index.html#variable-dark-schema)), which is basically pointing out the components with a custom schema, and after that add it to the respective component themes: - -```scss -// Extending the global dark-schema -$custom-dark-schema: extend($dark-schema,( - igx-column-actions: $custom-column-actions-schema, - igx-button: $custom-button-schema -)); - -// Defining column-actions-theme with the global dark schema -$custom-column-actions-theme: column-actions-theme( - $palette: $custom-palette, - $schema: $custom-dark-schema -); - -// Defining button-theme with the global dark schema -$custom-button: button-theme( - $palette: $custom-palette, - $schema: $custom-dark-schema -); -``` - -Don't forget to include the themes in the same way as it was demonstrated above. - ### Demo @@if (igxName === 'IgxGrid') { diff --git a/en/components/grids_templates/column-moving.md b/en/components/grids_templates/column-moving.md index 3289a3fd10..aca11a498a 100644 --- a/en/components/grids_templates/column-moving.md +++ b/en/components/grids_templates/column-moving.md @@ -189,97 +189,21 @@ Following the simplest approach, we create a new theme that extends the [`grid-t ```scss // Define dark theme for the column moving $dark-grid-column-moving-theme: grid-theme( - $ghost-header-text-color: #F4D45C, - $ghost-header-background: #575757, - $ghost-header-icon-color: #f4bb5c + $ghost-header-text-color: #f4d45c, + $ghost-header-background: #575757, + $ghost-header-icon-color: #f4bb5c ); ``` -The last step is to **include** the component mixins with its respective theme: - -```scss -@include grid($dark-grid-column-moving-theme); -``` - -> [!NOTE] -> Depending on the component [**View Encapsulation**](../../components/themes/sass/component-themes.md#view-encapsulation) strategy, it may be necessary to `penetrate` this encapsulation using `::ng-deep` - -```scss -:host { - ::ng-deep { - @include grid($dark-grid-column-moving-theme); - } -} -``` - -### Defining a color palette - -Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [igx-palette]({environment:sassApiUrl}/index.html#function-igx-palette) and [igx-color]({environment:sassApiUrl}/index.html#function-igx-color) functions. - - -**igx-palette** generates a color palette based on the primary and secondary colors that are passed: -```scss -$yellow-color: #F4D45C; -$black-color: #575757; - -$dark-palette: palette($primary: $yellow-color, $secondary: $black-color); -``` - -And then with [**igx-color**]({environment:sassApiUrl}/index.html#function-igx-color) we can easily retrieve color from the pallete. - -```scss -$dark-grid-column-moving-theme: grid-theme( - $palette: $dark-palette, - $ghost-header-text-color: color($dark-palette, "primary", 400), - $ghost-header-background: color($dark-palette, "secondary", 200), - $ghost-header-icon-color: color($dark-palette, "primary", 500) -); -``` - - -> [!NOTE] -> The color and palette are powerful functions for generating and retrieving colors. Please refer to [`Palettes`](../../components/themes/palettes.md) topic for detailed guidance on how to use them. - -### Using Schemas - -Going further with the theming engine, you can build a robust and flexible structure that benefits from [schemas](../../components/themes/sass/schemas.md). A **schema** is a recipe of a theme. - -Extend one of the two predefined schemas, that are provided for every component, in this case - [light-grid]({environment:sassApiUrl}/index.html#variable-_light-grid). - -```scss -// Extending the dark grid schema -$dark-grid-column-moving-schema: extend($_light-grid, - ( - ghost-header-text-color:( - color: ("primary", 400) - ), - ghost-header-background:( - color: ("secondary", 200) - ), - ghost-header-icon-color:( - color:( "primary", 500) - ) - ) -); -``` +>[!NOTE] +>Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`palette`]({environment:sassApiUrl}/index.html#function-palette) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. -In order to apply our custom schema we have to **extend** one of the globals ([light]({environment:sassApiUrl}/index.html#variable-light-schema) or [dark]({environment:sassApiUrl}/index.html#variable-dark-schema)), which is basically pointing out the components with a custom schema, and after that add it to the respective component theme: +The last step is to **include** the component mixins with its respective theme: ```scss -// Extending the global dark-schema -$custom-light-schema: extend($light-schema,( - igx-grid: $dark-grid-column-moving-schema, -)); - -// Defining dark-grid-theme with the global dark schema -$dark-grid-column-moving-theme: grid-theme( - $palette: $dark-palette, - $schema: $custom-light-schema -); +@include css-vars($dark-grid-column-moving-theme); ``` -Don't forget to include the theme in the same way as it was demonstrated above. - ### Demo @@if (igxName === 'IgxGrid') { @@ -320,7 +244,6 @@ Don't forget to include the theme in the same way as it was demonstrated above. * [ColumnComponent]({environment:angularApiUrl}/classes/igxcolumncomponent.html) * [@@igxNameComponent]({environment:angularApiUrl}/classes/@@igTypeDoc.html) -* [@@igxNameComponent Styles]({environment:sassApiUrl}/index.html#mixin-igx-grid) ## Additional Resources diff --git a/en/components/grids_templates/column-pinning.md b/en/components/grids_templates/column-pinning.md index 6469a3ebf1..fd884c74eb 100644 --- a/en/components/grids_templates/column-pinning.md +++ b/en/components/grids_templates/column-pinning.md @@ -7,7 +7,7 @@ _keywords: lock column, ignite ui for angular, infragistics } @@if (igxName === 'IgxTreeGrid') { --- -title: Angular Tree Grid Column Pinning - Ignite UI for Angulars +title: Angular Tree Grid Column Pinning - Ignite UI for Angular _description: Want to use the Pinning feature of the Ignite UI for Angular when you develop your next app? Easily lock column or change column order with rich API. _keywords: lock column, ignite ui for angular, infragistics _canonicalLink: grid/column-pinning @@ -359,88 +359,23 @@ Next, create a new theme, that extends the [`grid-theme`]({environment:sassApiUr ```scss $custom-theme: grid-theme( - /* Pinning properties that affect styling */ - $pinned-border-width: 5px, - $pinned-border-style: double, - $pinned-border-color: #FFCD0F, - $cell-active-border-color: #FFCD0F - /* add other features properties here... */ + $pinned-border-width: 5px, + $pinned-border-style: double, + $pinned-border-color: #ffcd0f, + $cell-active-border-color: #ffcd0f ); ``` -### Defining a custom color palette -In the approach, that was described above, the color values were hardcoded. Alternatively, you can achieve greater flexibility, using the [`igx-palette`]({environment:sassApiUrl}/index.html#function-igx-palette) and [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) functions. -`igx-palette` generates a color palette, based on provided primary and secondary colors. - - ```scss -$primary-color: #292826; -$secondary-color: #ffcd0f; - -$custom-palette: palette( - $primary: $primary-color, - $secondary: $secondary-color -); -``` - -After a custom palette has been generated, the `igx-color` function can be used to obtain different varieties of the primary and the secondary colors. - - -```scss -$custom-theme: grid-theme( - $pinned-border-width: 5px, - $pinned-border-style: double, - $pinned-border-color: color($custom-palette, "secondary", 500), - $cell-active-border-color: color($custom-palette, "secondary", 500) -); -``` - -The `$custom-theme` contains the same properties as the one in the previous section, but this time the colors are not hardcoded. Instead, the custom `igx-palette` was used and the colors were obtained through its primary and secondary colors, with a given color variant. - -### Defining custom schemas -You can go even further and build flexible structure that has all the benefits of a [**schema**](../themes/sass/schemas.md). The **schema** is the recipe of a theme. -Extend one of the two predefined schemas, that are provided for every component. In our case, we would use `$_light_grid`. -```scss -$custom-grid-schema: extend($_light-grid,( - pinned-border-width: 5px, - pinned-border-style: double, - pinned-border-color: color:("secondary", 500), - cell-active-border-color: color:("secondary", 500) -)); -``` -In order for the custom schema to be applied, either `light`, or `dark` globals has to be extended. The whole process is actually supplying a component with a custom schema and adding it to the respective component theme afterwards. -```scss -$my-custom-schema: extend($light-schema, ( - igx-grid: $custom-grid-schema -)); -$custom-theme: grid-theme( - $palette: $custom-palette, - $schema: $my-custom-schema -); -``` +>[!NOTE] +>Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`palette`]({environment:sassApiUrl}/index.html#function-palette) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. ### Applying the custom theme The easiest way to apply your theme is with a `sass` `@include` statement in the global styles file: -```scss -@include grid($custom-theme); -``` - -### Scoped component theme - -In order for the custom theme to affect only specific component, you can move all of the styles you just defined from the global styles file to the custom component's style file (including the import of the `index` file). - -This way, due to Angular's [ViewEncapsulation](https://angular.io/api/core/Component#encapsulation), your styles will be applied only to your custom component. - >[!NOTE] - >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to penetrate this encapsulation using `::ng-deep` in order to style the grid. - >[!NOTE] - >Wrap the statement inside of a `:host` selector to prevent your styles from affecting elements *outside of* our component: ```scss -:host { - ::ng-deep { - @include grid($custom-theme); - } -} +@include css-vars($custom-theme); ``` + ### Demo diff --git a/en/components/grids_templates/column-resizing.md b/en/components/grids_templates/column-resizing.md index 809711d41c..b8e1cf674c 100644 --- a/en/components/grids_templates/column-resizing.md +++ b/en/components/grids_templates/column-resizing.md @@ -292,82 +292,18 @@ The simplest approach to achieve this is to create a new theme that extends the ``` scss $custom-grid-theme: grid-theme( - $resize-line-color: #0288D1 -); - -``` - >[!NOTE] - >If the component is using an [`Emulated`](../themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to `penetrate` this encapsulation using `::ng-deep`. - -```scss -:host { - ::ng-deep { - @include grid($custom-grid-theme); - } -} -``` - -### Defining a color palette -Instead of hard-coding the color values, we can achieve greater flexibility in terms of colors by using the [`igx-palette`]({environment:sassApiUrl}/index.html#function-igx-palette) and [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color) functions. - -`igx-palette` generates a color palette based on the specified primary and secondary color: - -```scss -$primary-color: #0288D1; -$secondary-color: #BDBDBD; - -$custom-theme-palette: palette($primary: $primary-color, $secondary: $secondary-color); -``` - -And then, with [`igx-color`]({environment:sassApiUrl}/index.html#function-igx-color), we can easily retrieve the color from the palette. - -```scss -$custom-grid-theme: grid-theme( - $palette: $custom-theme-palette, - $resize-line-color: color($custom-theme-palette, 'secondary', 500) + $resize-line-color: #0288d1 ); ``` >[!NOTE] ->The `igx-color` and `igx-palette` are powerful functions for generating and retrieving colors. Please, refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. +>Instead of hardcoding the color values like we just did, we can achieve greater flexibility in terms of colors by using the [`palette`]({environment:sassApiUrl}/index.html#function-palette) and [`color`]({environment:sassApiUrl}/index.html#function-color) functions. Please refer to [`Palettes`](../themes/sass/palettes.md) topic for detailed guidance on how to use them. -### Using Schemas -Going further with the theming engine, you can build a robust and flexible structure that benefits from [**schemas**](../themes/sass/schemas.md). A **schema** is a recipe of a theme. - -Extend the predefined schema provided for every component, in this case - [`light-grid`]({environment:sassApiUrl}/index.html#variable-_light-grid) schema: +The last step is to **include** the component mixins with its respective theme: ```scss -// Extending the light grid schema -$light-grid-schema: extend($_light-grid, - ( - resize-line-color: ( - color: ('secondary', 500) - ), - header-background: ( - color: ("primary", 100) - ), - header-text-color: ( - color: ("primary", 600) - ) - ) -); -``` - -In order to apply our custom schema, we have to **extend** one of the globals ([`light`]({environment:sassApiUrl}/index.html#variable-light-schema) or [`dark`]({environment:sassApiUrl}/index.html#variable-dark-schema)), which is basically pointing out the components with a custom schema, and after that add it to the respective component theme: - -```scss -// Extending the global light-schema -$custom-light-grid-schema: extend($light-schema,( - igx-grid: $light-grid-schema -)); - -// Specifying the palette and schema of the custom grid theme -$custom-grid-theme: grid-theme( - $palette: $custom-theme-palette, - $schema: $custom-light-grid-schema -); +@include css-vars($custom-grid-theme); ``` -Don't forget to include the theme in the same way as it was demonstrated above. ### Demo diff --git a/en/components/grids_templates/column-selection.md b/en/components/grids_templates/column-selection.md index 869a9f98ef..0257f5e103 100644 --- a/en/components/grids_templates/column-selection.md +++ b/en/components/grids_templates/column-selection.md @@ -55,7 +55,7 @@ The column selection feature can be enabled through the [`columnSelection`]({env The default selection mode is `none`. If set to `single` or `multiple` all of the presented columns will be [`selectable`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selectable). With that being said, in order to select a column, we just need to click on one, which will mark it as [`selected`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selected). If the column is not selectable, no selection style will be applied on the header, while hovering. > [!NOTE] -> [`Multi-column Headers`](multi-column-headers.md) don't reflect on the [`selectable`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selectable) input. The [`IgxColumnGroupComponent`]({environment:angularApiUrl}/classes/igxcolumngroupcomponent.html) is [`selectable`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selectable), if at least one of its children has the selection behaviour enabled. In addition, the component is marked as [`selected`]({environment:angularApiUrl}/classes/igxcolumngroupcomponent.html#selected) if all of its `selectable` descendents are [`selected`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selected). +> [`Multi-column Headers`](multi-column-headers.md) don't reflect on the [`selectable`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selectable) input. The [`IgxColumnGroupComponent`]({environment:angularApiUrl}/classes/igxcolumngroupcomponent.html) is [`selectable`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selectable), if at least one of its children has the selection behavior enabled. In addition, the component is marked as [`selected`]({environment:angularApiUrl}/classes/igxcolumngroupcomponent.html#selected) if all of its `selectable` descendants are [`selected`]({environment:angularApiUrl}/classes/igxcolumncomponent.html#selected). @@if (igxName === 'IgxGrid') { *Under _Country Information_ Column Group only column _City_ and _Postal code_ are selectable. @@ -94,6 +94,7 @@ More information regarding the API manipulations could be found in the [`API Ref ## Styling Before diving into the styling options, the core module and all component mixins need to be imported. + ```scss @use "igniteui-angular/theming" as *; @@ -102,7 +103,7 @@ Before diving into the styling options, the core module and all component mixins ``` >[!NOTE] ->Please note that [`row selection`](row-selection.md) and [`column selection`](column-selection.md) can't be manipulated independently. They depend on the same `variables`. +>Please note that [`row selection`](row-selection.md) and [`column selection`](column-selection.md) can't be manipulated independently. They depend on the same `variables`. With that being said, let's move on and change the **selection** and **hover** styles.The Ignite UI for Angular Icon component unifies icon/font families so developers can use them interchangeably and add material icons to markup.
## Angular Icon Example -The Ignite UI for Angular Linear Progress Bar Indicator component provides a visual indicator of an application’s process as it changes. The indicator updates its appearance as its state changes. The indicator can be styled with a choice of colors in stripes or solids.
- ## Angular Linear Progress Example @@ -53,15 +53,15 @@ import { IGX_LINEAR_PROGRESS_BAR_DIRECTIVES } from 'igniteui-angular'; // import { IGX_LINEAR_PROGRESS_BAR_DIRECTIVES } from '@infragistics/igniteui-angular'; for licensed package @Component({ - selector: 'app-home', - template: 'The Ignite UI for Angular Navigation Drawer component is a side navigation container. It can rest above content and slide in/out of view or be pinned to expand/collapse within the content. A mini version provides quick access to navigation even when closed. The Navigation Drawer features responsive mode selection and touch gestures. Content is completely customizable and can make use of default menu item styling.
- ## Angular Navigation Drawer Example - +The Ignite UI for Angular Switch component is a binary choice selection component that behaves similarly to the switch component in iOS.
- ## Angular Switch Example @@ -53,15 +53,11 @@ import { IgxSwitchComponent } from 'igniteui-angular'; // import { IgxSwitchComponent } from '@infragistics/igniteui-angular'; for licensed package @Component({ - selector: 'app-home', - template: ` -| All | -*Primary & Secondary Only* | +Primary & Secondary Only | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| **50** | -**100** | -**200** | -**300** | -**400** | -**500** | -**600** | -**700** | -**800** | -**900** | -*A100* | -*A200* | -*A400* | -*A700* | +50 | +100 | +200 | +300 | +400 | +500 | +600 | +700 | +800 | +900 | +A100 | +A200 | +A400 | +A700 |
The Ignite UI for Angular Typography Sass module allows you to modify the typography for all components in your application, specific typographic scale, or specific components.
## Overview + An application can define multiple typography `scales` that may share scale categories between one another. A `scale category` is a set of `type styles`, containing information about `font-family`, `font-size`, `font-weight`, `line-height`, `letter-spacing`, and `text-transform`. Ignite UI for Angular exposes 4 default type scales for each of its themes - `$material-type-scale`, `$fluent-type-scale`, `$bootstrap-type-scale`, and `$indigo-type-scale`, which are in turn used by the `typography` mixin to set the typography styles. You can, however, create additional type scales. @@ -17,13 +19,14 @@ Ignite UI for Angular exposes 4 default type scales for each of its themes - `$m In many cases you would only need to make slight modifications to the typography, thus it's recommended that you read the [Typography](../typography.md) section of the CSS Variables documentation first, if you haven't already. Using Sass to modify the typography is only required if you want to make deeper changes pertaining to the entire typographic scale. ## Usage + > [!IMPORTANT] > By default we don't apply any typography styles. To use our typography in your application you have to set the `ig-typography` CSS class on a top-level element and include the `typography` mixin in your base `.scss` file. We have selected [Titillium Web](https://fonts.google.com/selection?selection.family=Titillium+Web:300,400,600,700) to be the default font in the Material theme for Ignite UI for Angular. To use it you have to host it yourself, or include it from Google Fonts: ```html - + ``` There are a several mixins and functions that are used to set and retrieve category styles to/from a type scale. Those are: @@ -38,18 +41,20 @@ There are a several mixins and functions that are used to set and retrieve categ Let's take a closer look at what each one of the aforementioned mixins and functions do. ### The Type Style + The `type-style` function is an interface-like function that simply ensures that certain arguments are passed as part of the style set for a scale category. Say, for instance that we want to define a new set of style rules for the `h1` scale category. To do so, we could simply write: ```scss $h1-style: type-style( - $font-size: 112px, - $font-weight: 600, - $line-height: 96px, - ... + $font-size: rem(112px), + $font-weight: 600, + $line-height: rem(96px), + ..., ); ``` ### The Type Scale + The type scale produces a map of 13 typography styles used as scale categories. To generate a new type scale, do the following: ```scss @@ -60,16 +65,19 @@ $my-type-scale: type-scale(...); > You have to provide a type style for each of the 13 scale categories. A style can be generated using the `type-style` function as shown above. ```scss -$my-type-scale: type-scale($h1: $h1-style, [$h2...$overline]); +$my-type-scale: type-scale( + $h1: $h1-style, + [$h2...$overline], +); ``` You can modify an existing type scale by extending it. To change the `h1` type style of the `$material-type-scale` you can do: ```scss $my-type-scale: extend( - $material-type-scale, + $material-type-scale, ( - h1: type-style(...) + h1: type-style(...), ) ); ``` @@ -78,16 +86,16 @@ Adding additional type styles to a scale is just as easy: ```scss $my-type-category: type-style( - $font-weight: 600, - $font-size: 42px, - $text-transform: uppercase, - ... + $font-weight: 600, + $font-size: rem(42px), + $text-transform: uppercase, + ..., ); $my-type-scale: extend( - $my-type-scale, + $my-type-scale, ( - 'my-category': $my-type-category + "my-category": $my-type-category, ) ); ``` @@ -97,28 +105,30 @@ $my-type-scale: extend( The typography mixin defines the global typography styles for an application, including how the native h1-h6 and p elements are styled. It currently accepts 2 arguments: + - `$font-family` - The global font family to be used by the application. - `$type-scale` - The default type scale to be used by the application. -To use the typography styles, include the `typography` mixin anywhere after the `core` mixin and before the `theme` mixin. Let's take advantage of the type scale `$my-type-scale` we defined above and make it the default type scale. +To use the typography styles, include the `typography` mixin anywhere after the `core`. Let's take advantage of the type scale `$my-type-scale` we defined above and make it the default type scale. ```scss @include typography( - $font-family: $material-typeface, - $type-scale: $my-type-scale, + $font-family: $material-typeface, + $type-scale: $my-type-scale ); ``` We expose four variables for typeface, similar to type-scale - `$material-typeface`, `$fluent-typeface`, `$bootstrap-typeface`, and `$indigo-typeface`. You can use any of them in combination with any type-scale when including the `typography` mixin. ## Custom Type Styles + The `type-style` mixin can be used to retrieve the style rules for a scale category from a specific type scale. Furthermore, it allows you to add additional style rules. ```scss .my-fancy-h1 { - @include type-style('h1') { - color: royalblue; - } + @include type-style('h1') { + color: royalblue; + } } ``` @@ -127,36 +137,46 @@ The above code will produce a class style selector `.my-fancy-h1`, which contain ## Component Typography Most of the components in Ignite UI for Angular use scale categories for styling the text. For instance, the `igx-card` component uses the following scale categories: + - `h6` - used for styling card title. - `subtitle-2` - used for styling card subtitle and small title. - `body-2` - used for styling card text content. -There are two ways to change the text styles of a card. The first is by modifying the `h6`, `subtitle-2`, and/or `body-2` scales in the ***material type scale*** that we pass to the typography mixin. So if we wanted to make the title in a card smaller, all we have to do is change the font-size of the `h6` scale category. +There are two ways to change the text styles of a card. The first is by modifying the `h6`, `subtitle-2`, and/or `body-2` scales in the **_material type scale_** that we pass to the typography mixin. So if we wanted to make the title in a card smaller, all we have to do is change the font-size of the `h6` scale category. ```scss // Create a custom h6 scale category style -$my-h6: type-style($font-size: 12px); +$my-h6: type-style( + $font-size: rem(12px), +); // Create a custom type scale with the modified h6 -$my-type-scale: extend($material-type-scale, (h6: $my-h6)); +$my-type-scale: extend( + $material-type-scale, + ( + h6: $my-h6, + ) +); // Pass the custom scale to the global typography mixin @include typography($type-scale: $my-type-scale); ``` -> [!WARNING] +> [!WARNING] > The above code will modify the `h6` scale category globally, which will affect the look and feel of all components that use the `h6` scale. This is done for consistency so that all `h6` elements look the same across your app. We understand that you may want to apply the modification for `h6` to specific components only, like the `igx-card` component in our case. This is why every component has its own typography mixin, which accepts a category configuration. ```scss // Create a custom h6 scale category style -$my-h6: type-style($font-size: 12px); +$my-h6: type-style( + $font-size: rem(12px), +); // You can specify which categories from the type sale the card uses $card-categories: ( - title: 'h6', - title-small: 'subtitle-2', - subtitle: 'subtitle-2', - content: 'body-2', + title: 'h6', + title-small: 'subtitle-1', + subtitle: 'subtitle-2', + content: 'body-2', ); .my-cool-card { @@ -170,6 +190,48 @@ $card-categories: ( We no longer include the `typography` mixin by passing it the `$my-type-scale` scale with our modification to the `h6` category. Now all we do is pass the custom h6 style we created to the `type-style-vars` mixin. +Using the card-typography mixin, we can update the typography styles for all elements in the card component. In the example above, the title-small key in the $card-categories map is assigned the subtitle-1 type style. This change makes the small title in the card slightly larger. By default, the card component uses the subtitle-2 type style for the small title, which has a smaller font size than subtitle-1. The mixin allows us to override this default and apply the new style. + +## Converting Units + +We also have three typography functions for converting property units. With the functions we can convert `px` units to `em` or `rem`, and also `em` or `rem` units to `px`. +All we need to do is call one of the three functions and pass a value that we want to convert. + +### To 'px' + +```scss +.my-component { + margin: px(3.23rem); +} +``` + +### To 'rem' + +```scss +.my-component { + margin: rem(10px) rem(5px); +} +``` + +### To 'em' + +```scss +.my-component { + margin: em(10px) em(5px); +} +``` + +It's important to remember that when converting a value, the conversion is based on a default base font size of 16px (where 16px = 1em/rem). If we want, we can provide a custom base font size as an argument to the conversion function. This will ensure that the resulting value is calculated relative to the specified base font size. + +```scss +.my-component { + margin: rem(10px, 26px); + // The result will be 0.385rem +} +``` + +This will convert the 10px value to rem, based on the font size of 26px. + ## CSS Classes In addition to adding text styles for all components based on type scale categories, we also style the default h1-h6 and p elements. This allows us to separate semantics from styling. So for instance, even though the `h1` tag has some default styling that we provide when using `typography`, you can modify it to look like an `h3` by giving it a class of `ig-typography__h3`. diff --git a/en/components/time-picker.md b/en/components/time-picker.md index 8d8655aef8..dcf06713f2 100644 --- a/en/components/time-picker.md +++ b/en/components/time-picker.md @@ -274,7 +274,7 @@ Alternatively, if the [`inputFormat`]({environment:angularApiUrl}/classes/igxtim > The `IgxTimePicker` now supports IME input. When composition ends, the control converts the wide-character numbers to ASCII characters. ### Increment and decrement -The time picker exposes public [`increment`]({environment:angularApiUrl}/classes/igxtimepickercomponent.html#increment) and [`decrement`]({environment:angularApiUrl}/classes/igxtimepickercomponent.html#decrement) methods, which accept two optional parametars: the `DatePart` to be modified and the `delta` by which it will be changed. If not specified the `DatePart` defaults to `Hours` and the `delta` defaults to [`itemsDelta`]({environment:angularApiUrl}/classes/igxtimepickercomponent.html#itemsDelta). +The time picker exposes public [`increment`]({environment:angularApiUrl}/classes/igxtimepickercomponent.html#increment) and [`decrement`]({environment:angularApiUrl}/classes/igxtimepickercomponent.html#decrement) methods, which accept two optional parameters: the `DatePart` to be modified and the `delta` by which it will be changed. If not specified the `DatePart` defaults to `Hours` and the `delta` defaults to [`itemsDelta`]({environment:angularApiUrl}/classes/igxtimepickercomponent.html#itemsDelta). You can find a sample that illustrates the use of both methods at [Date Time Editor Directive](date-time-editor.md#increment-decrement). @@ -384,10 +384,10 @@ Following the simplest approach, we create a new theme that extends the [`time-p ```scss $my-time-picker-theme: time-picker-theme( - $text-color: #E4C8A5, - $hover-text-color: #ECAA53, - $selected-text-color: #ECAA53, - $header-background: #ECAA53, + $text-color: #e4c8a5, + $hover-text-color: #ecaa53, + $selected-text-color: #ecaa53, + $header-background: #ecaa53, $header-hour-text-color: #011627, $header-time-period-color: #011627, $background-color: #011627 @@ -420,42 +420,17 @@ Now, the time picker's items are properly rendered **inside** of our component's >[!NOTE] >In order to learn more about the various options for providing themes to elements that are shown by using the [`IgxOverlayService`](overlay.md), you can take a look at the [Overlay styling topic](overlay-styling.md). -### Including Themes - - - -The last step is to **include** the component theme in our application. - -If `$legacy-support` is set to `true`, include the **theme** like that: - ```scss - @include time-picker($my-time-picker-theme); + @include css-vars($my-time-picker-theme); ``` ->[!NOTE] +>[!WARNING] >If the component is using an [`Emulated`](themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, it is necessary to `penetrate` this encapsulation using `::ng-deep` ```scss :host { - ::ng-deep { - @include time-picker($my-time-picker-theme); - } -} -``` - - - -If `$legacy-support` is set to `false`(default), include the component **css variables** like that: - -```scss -@include css-vars($my-time-picker-theme); -``` - ->[!NOTE] ->If the component is using an [`Emulated`](themes/sass/component-themes.md#view-encapsulation) ViewEncapsulation, you still have to use `:host` because you need a global selector in order to override the variables. - -```scss -:host { + ::ng-deep { @include css-vars($my-time-picker-theme); + } } ``` diff --git a/en/components/toast.md b/en/components/toast.md index a1fb181e6a..fba7116651 100644 --- a/en/components/toast.md +++ b/en/components/toast.md @@ -6,7 +6,6 @@ _keywords: Angular Toast component, Angular Toast control, Ignite UI for Angular # Angular Toast Component OverviewThe Ignite UI for Angular Toast component provides information and warning messages that are auto-hiding, non-interactive and cannot be dismissed by the user. Notifications can be displayed at the bottom, the middle, or the top of the page.
- ## Angular Toast Example @@ -110,9 +109,6 @@ public showMessage() { } ``` -> [!WARNING] -> The igx-toast component `show` and `hide` methods have been deprecated. `open` and `close` should be used instead. - ## Examples ### Hide/Auto Hide @@ -178,30 +174,6 @@ public open(toast) { iframe-src="{environment:demosBaseUrl}/notifications/toast-sample-5" > -### Overlay Settings -The [`IgxToastComponent`]({environment:angularApiUrl}/classes/igxtoastcomponent.html) uses [Overlay Settings]({environment:angularApiUrl}/interfaces/overlaysettings.html) to control the position of its container. The default settings can be changed by defining Custom OverlaySettings and passing them to the toast `open()` method: - -```typescript -public customSettings: OverlaySettings = { - positionStrategy: new GlobalPositionStrategy( - { - horizontalDirection: HorizontalAlignment.Left, - verticalDirection: VerticalAlignment.Top - }), - modal: true, - closeOnOutsideClick: true, -}; - -toast.open(customSettings); -``` - -Users can also provide a specific outlet where the toast will be placed in the DOM when it is visible: - -```html -Ignite UI for Angular Snackbar コンポーネントは、アクションを含むことができる単一行のメッセージで操作のフィードバックを提供します。SnackBar メッセージがその他の画面要素の上に表示され、画面の中央下に配置されます。
+Ignite UI for Angular Snackbar コンポーネントは、アクションを含むことができる単一行のメッセージで操作のフィードバックを提供します。Snackbar メッセージがその他の画面要素の上に表示され、画面の中央下に配置されます。
## Angular Snackbar の例 @@ -255,31 +255,29 @@ public restore() { iframe-src="{environment:demosBaseUrl}/notifications/snackbar-sample-4" >