-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kit):
InputInline
has broken scroll in Safari & Firefox (#9818)
- Loading branch information
1 parent
b3db7bc
commit 76634f1
Showing
7 changed files
with
93 additions
and
22 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
projects/demo/src/modules/components/input-inline/examples/4/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<ul class="task"> | ||
<ol> | ||
I | ||
<tui-input-inline> | ||
<input ngModel="am" /> | ||
</tui-input-inline> | ||
funny. | ||
</ol> | ||
|
||
<ol> | ||
He | ||
<tui-input-inline [class._empty]="!answer"> | ||
<!-- Any text inside tui-input-inline is placeholder--> | ||
<!-- It will be shown fully even for unset width of InputInline --> | ||
___ | ||
<input [(ngModel)]="answer" /> | ||
</tui-input-inline> | ||
funny. | ||
</ol> | ||
|
||
<ol> | ||
You | ||
<tui-input-inline [style.max-width.ch]="15"> | ||
<input | ||
ngModel="" | ||
placeholder="___" | ||
spellcheck="false" | ||
/> | ||
</tui-input-inline> | ||
funny. | ||
</ol> | ||
</ul> | ||
|
||
<section class="task"> | ||
<p> | ||
<strong>Writing practice</strong> | ||
<br /> | ||
Learning to | ||
<s>write</s> | ||
type underscore and hyphen | ||
</p> | ||
<!-- prettier-ignore --> | ||
<div> | ||
___<tui-input-inline> | ||
<input | ||
ngModel="" | ||
placeholder="___" | ||
/> | ||
</tui-input-inline>------<tui-input-inline> | ||
<input | ||
ngModel="" | ||
placeholder="------" | ||
/> | ||
</tui-input-inline> | ||
</div> | ||
</section> |
13 changes: 13 additions & 0 deletions
13
projects/demo/src/modules/components/input-inline/examples/4/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.task:first-child input:not(:placeholder-shown) { | ||
text-decoration: underline; | ||
text-align: center; | ||
} | ||
|
||
tui-input-inline._empty, | ||
tui-input-inline:has(input:placeholder-shown) { | ||
color: var(--tui-text-tertiary); | ||
} | ||
|
||
tui-input-inline:has(input[placeholder]) { | ||
min-inline-size: 3ch; | ||
} |
17 changes: 17 additions & 0 deletions
17
projects/demo/src/modules/components/input-inline/examples/4/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {Component} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiInputInline} from '@taiga-ui/kit'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [FormsModule, TuiInputInline], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export default class Example { | ||
protected answer = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
projects/kit/components/input-inline/input-inline.template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters