|
1 | | -# Code/pincode input component for angular |
| 1 | +# Code/pincode input component for angular |
2 | 2 |
|
3 | 3 |  |
4 | 4 |  |
@@ -86,27 +86,28 @@ Inside a page script: |
86 | 86 |
|
87 | 87 | #### View |
88 | 88 |
|
89 | | -It is possible to configure the component via CSS vars |
| 89 | +It is possible to configure the component via CSS vars |
90 | 90 | <br />or using `::ng-deep` (deprecated) angular CSS selector |
91 | 91 | [::ng-deep](https://angular.io/guide/component-styles#deprecated-deep--and-ng-deep) |
92 | 92 |
|
93 | 93 | CSS vars: |
94 | 94 |
|
95 | | -| CSS Var | Description | |
96 | | -|----------|--------------------| |
97 | | -| `--text-security-type: disc;` | Text presentation type when the isCodeHidden is enabled | |
98 | | -| `--item-spacing: 4px;` | Horizontal space between input items | |
99 | | -| `--item-height: 4.375em;` | Height of input items | |
100 | | -| `--item-border: 1px solid #dddddd;` | Border of input item for an empty value | |
101 | | -| `--item-border-bottom: 1px solid #dddddd;` | Bottom border of input item for an empty value | |
102 | | -| `--item-border-has-value: 1px solid #dddddd;` | Border of input item with a value | |
103 | | -| `--item-border-bottom-has-value: 1px solid #dddddd;` | Bottom border of input item with a value | |
104 | | -| `--item-border-focused: 1px solid #dddddd;` | Border of input item when focused | |
105 | | -| `--item-border-bottom-focused: 1px solid #dddddd;` | Bottom border of input item when focused | |
106 | | -| `--item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1);` | Shadow of input item when focused | |
107 | | -| `--item-border-radius: 5px;` | Border radius of input item | |
108 | | -| `--item-background: transparent;` | Input item background | |
109 | | -| `--color: #171516;` | Text color of input items | |
| 95 | +| CSS Var | Description | |
| 96 | +|--------------------------------------------------------------|--------------------------------------------------------| |
| 97 | +| `--text-security-type: disc;` | Text presentation type when the isCodeHidden is enabled | |
| 98 | +| `--item-spacing: 4px;` | Horizontal space between input items | |
| 99 | +| `--item-height: 4.375em;` | Height of input items | |
| 100 | +| `--item-border: 1px solid #dddddd;` | Border of input item for an empty value | |
| 101 | +| `--item-border-bottom: 1px solid #dddddd;` | Bottom border of input item for an empty value | |
| 102 | +| `--item-border-has-value: 1px solid #dddddd;` | Border of input item with a value | |
| 103 | +| `--item-border-bottom-has-value: 1px solid #dddddd;` | Bottom border of input item with a value | |
| 104 | +| `--item-border-focused: 1px solid #dddddd;` | Border of input item when focused | |
| 105 | +| `--item-border-bottom-focused: 1px solid #dddddd;` | Bottom border of input item when focused | |
| 106 | +| `--item-shadow-focused: 0px 1px 5px rgba(221, 221, 221, 1);` | Shadow of input item when focused | |
| 107 | +| `--item-border-radius: 5px;` | Border radius of input item | |
| 108 | +| `--item-background: transparent;` | Input item background | |
| 109 | +| `--item-font-weight: 300;` | Font weight of input item | |
| 110 | +| `--color: #171516;` | Text color of input items | |
110 | 111 |
|
111 | 112 | Example with only bottom borders: |
112 | 113 |
|
@@ -158,12 +159,12 @@ It can be reached as follows. |
158 | 159 | Inside the page template HTML add a template ref: |
159 | 160 |
|
160 | 161 | ```html |
161 | | - <code-input |
162 | | - ... |
163 | | - #codeInput |
164 | | - ... |
165 | | - > |
166 | | - </code-input> |
| 162 | +<code-input |
| 163 | + ... |
| 164 | + #codeInput |
| 165 | + ... |
| 166 | +> |
| 167 | +</code-input> |
167 | 168 | ``` |
168 | 169 |
|
169 | 170 | Inside a page script attach the component: |
|
0 commit comments