ptcs-button
{
color: #FAFAFA;
background-color: #2B80D5;
padding: 0px 60px;
font-size: 24px;
font-weight: bold;
height: 80px;
border-radius: 6px;
}

@supports (ptcs-style-unit: "PTCS-DATEPICKER") {
[part=date-field] {
background-color: red;
}
}
|
|
You can achieve some of the following styles using style properties. We recommend using style properties instead of CSS when possible.
|
|
CSS
|
Description
|
Preview
|
||
|---|---|---|---|---|
@supports (ptcs-style-unit: "PTCS-BUTTON.primary") {
|
Sets the background color of the button to red and applies a blue border.
|
![]() |
||
@supports (ptcs-style-unit: "PTCS-BUTTON.danger") {
|
Sets the label color of the button danger variant to blue and the font style to italic.
|
![]() |
||
@supports (ptcs-style-unit: "PTCS-BUTTON.primary") {
|
Displays a red border around the button when the hover state is active.
|
![]() |
||
@supports (ptcs-style-unit: "PTCS-BUTTON.primary") {
|
Sets the background color of a button with CustomClass value of custom-button to red and applies a blue border. In the example, only the middle button has a custom CSS class set.
|
![]() |
|
CSS
|
Description
|
Preview
|
|---|---|---|
@supports (ptcs-style-unit: "PTCS-TEXTFIELD") {
|
Sets the color of the clear button to red.
|
![]() |
@supports (ptcs-style-unit: "PTCS-TEXTFIELD") {
|
Sets the color of the text box border to red.
|
![]() |
@supports (ptcs-style-unit: "PTCS-TEXTFIELD") {
|
Sets the color of the character counter to red.
|
![]() |
|
CSS
|
Description
|
Preview
|
|---|---|---|
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
![]() |
|
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
|
|
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
Sets the color of the selected item value to red.
|
![]() |
@supports (ptcs-style-unit: "PTCS-DROPDOWN") {
|
Sets the background color of the drop-down to red and the border to blue.
|
![]() |
|
CSS
|
Description
|
Preview
|
|---|---|---|
@supports (ptcs-style-unit: "PTCS-CHART-AXIS") {
|
Sets the color of the chart axes to red.
|
![]() |
@supports (ptcs-style-unit: "PTCS-CHART-CORE-BAR") {
|
Rounds the top right and top left corners of columns.
|
![]() |
@supports (ptcs-style-unit: "PTCS-CHART-CORE-BAR") {
|
Sets the color and font style of the column data labels.
|
![]() |