Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Commit 3acf232

Browse files
authored
Merge pull request #6152 from IgniteUI/apetrov/add-roundness-topic-vnext
feat(themes): add CSS roundness topic (vnext)
2 parents d7de373 + ed89d86 commit 3acf232

3 files changed

Lines changed: 67 additions & 1 deletion

File tree

en/components/themes/roundness.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: Roundness
3+
_description: Ignite UI for Angular allow you to change the shape of components by changing their border-radius.
4+
_keywords: Ignite UI for Angular, UI controls, Angular widgets, web widgets, UI widgets, Angular, Native Angular Components Suite, Native Angular Controls, Native Angular Components Library
5+
---
6+
7+
# Roundness
8+
Ignite UI for Angular allows you to customize the shape of components by adjusting their roundness using a value between 0 and 1.
9+
10+
## Overview
11+
Many Ignite UI components have predefined minimum and maximum border-radius values, which can be adjusted using the `--ig-radius-factor` CSS variable.
12+
13+
When you set `--ig-radius-factor` to 0, the component uses its minimum border-radius and will appear more block-like with sharp corners. When set to 1, the component uses its maximum predefined border-radius and will appear rounded.
14+
15+
Here is a list of the components that have predefined minimum and maximum border-radius values and can be modified using the `--ig-radius-factor` variable: <br>
16+
[Action Strip](../action-strip.md)[Button](../button.md)[Button Group](../button-group.md)[Calendar](../calendar.md)[Card](../card.md)[Carousel](../carousel.md)[Checkbox](../checkbox.md)[Chip](../chip.md)[Combo](../combo.md)[Date Picker](../date-picker.md)[Date Range Picker](../date-range-picker.md)[Grid](../grid/grid.md)[Input Group](../input-group.md)[Linear Progress](../linear-progress.md)[List](../list.md)[Month Picker](../month-picker.md)[Navigation Drawer](../navdrawer.md)[Radio](../radio-button.md)[Ripple](../ripple.md)[Snackbar](../snackbar.md)[Switch](../switch.md)[Toast](../toast.md)
17+
18+
## Usage
19+
20+
To switch between the two border-radius values on a component, target the element selector and simply set the `--ig-radius-factor` variable to either 0 or 1:
21+
22+
```css
23+
igx-chip {
24+
--ig-radius-factor: 0;
25+
}
26+
```
27+
28+
This will apply the minimum predefined border-radius, resulting in the [Chip](../chip.md) component having straight corners.
29+
30+
```css
31+
igx-chip {
32+
--ig-radius-factor: 1;
33+
}
34+
```
35+
36+
And by setting the value to 1, the maximum predefined border-radius is applied, resulting in rounded corners for the [Chip](../chip.md) component.
37+
38+
If you want the border-radius to be somewhere between the defined minimum and maximum values, you can set the `--ig-radius-factor` variable to a decimal value between 0 and 1.
39+
For example, setting it to `0.5` will apply a border-radius that is 50% of the component's maximum allowed value.
40+
41+
```css
42+
igx-chip {
43+
--ig-radius-factor: 0.5;
44+
}
45+
```
46+
47+
You can see the difference between the minimum and maximum border-radius values in the example below:
48+
49+
<code-view style="height: 210px"
50+
data-demos-base-url="{environment:demosBaseUrl}"
51+
iframe-src="{environment:demosBaseUrl}/theming/roundness" >
52+
</code-view>
53+
54+
## Additional Resources
55+
56+
Related topics:
57+
58+
- [Roundness with Sass](./sass/roundness.md)
59+
60+
Our community is active and always welcoming to new ideas.
61+
62+
* [Ignite UI for Angular **Forums**](https://www.infragistics.com/community/forums/f/ignite-ui-for-angular)
63+
* [Ignite UI for Angular **GitHub**](https://github.com/IgniteUI/igniteui-angular)

en/components/themes/sass/roundness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Roundness
2+
title: Roundness Sass
33
_description: Ignite UI for Angular allow you to change the shape of components by changing their border-radius.
44
_keywords: Ignite UI for Angular, UI controls, Angular widgets, web widgets, UI widgets, Angular, Native Angular Components Suite, Native Angular Controls, Native Angular Components Library
55
---

en/components/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,9 @@
895895
- name: Typography
896896
href: themes/typography.md
897897
new: false
898+
- name: Roundness
899+
href: themes/roundness.md
900+
new: false
898901
- name: Size
899902
href: display-density.md
900903
- name: Spacing

0 commit comments

Comments
 (0)