Skip to content

Commit

Permalink
fix(addon-commerce): InputCVC fix font issue
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Dec 8, 2020
1 parent de96918 commit 65c38b7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
17 changes: 0 additions & 17 deletions projects/addon-commerce/components/input-CVC/input-CVC.style.less
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
@import 'taiga-ui-local';

@font-face {
font-family: 'cvc';
src: url('font/cvc.woff2') format('woff2'), url('font/cvc.woff') format('woff');
font-weight: 400;
font-style: normal;
}

:host {
display: block;
max-width: 176px;
border-radius: var(--tui-radius);

// @bad TODO: Think of something better
// Hide input with dot font so proper screen keyboard and autocomplete work
/* stylelint-disable */
::ng-deep input.input {
font-family: cvc, sans-serif;
}
/* stylelint-enable */
}

.input {
Expand Down
1 change: 0 additions & 1 deletion projects/addon-commerce/components/input-CVC/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"ngPackage": {
"lib": {
"cssUrl": "inline",
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
Expand Down
1 change: 0 additions & 1 deletion projects/addon-commerce/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"dest": "../../dist/addon-commerce",
"lib": {
"entryFile": "index.ts",
"cssUrl": "inline",
"styleIncludePaths": ["../core/styles"]
}
}
1 change: 1 addition & 0 deletions projects/core/styles/taiga-ui-theme.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import './theme/fonts.css';
@import './taiga-ui-local';
@import './theme/variables';
@import './theme/wrapper';

0 comments on commit 65c38b7

Please sign in to comment.