Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohandasveena98 authored Dec 13, 2024
2 parents 4a4d2ce + a50d744 commit 28bdfc6
Show file tree
Hide file tree
Showing 5 changed files with 4,455 additions and 4,483 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ngx-clipboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 14.20.0
node-version: '20.x'
cache: 'yarn'

- uses: actions/cache@v2
- uses: actions/cache@v4
id: angular-cache
with:
path: |
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@
"*.{json,md,ts,html,component.html}": [
"prettier --write"
]
}
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
2 changes: 1 addition & 1 deletion projects/ngx-clipboard/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-clipboard",
"description": "angular 2 clipboard",
"version": "16.0.0",
"version": "16.1.1",
"author": {
"name": "Sam Lin",
"email": "[email protected]"
Expand Down
6 changes: 6 additions & 0 deletions projects/ngx-clipboard/src/lib/ngx-clipboard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ export class ClipboardService {
// Prevent zooming on iOS
ta.style.fontSize = '12pt';
// Reset box model
ta.style.height = '1px';
ta.style.width = '1px';
ta.style.overflow = 'hidden';
ta.style.clip = 'rect(0 0 0 0);';
ta.style.border = '0';
ta.style.padding = '0';
ta.style.margin = '0';
Expand All @@ -157,6 +161,8 @@ export class ClipboardService {
const yPosition = window.pageYOffset || doc.documentElement.scrollTop;
ta.style.top = yPosition + 'px';
ta.setAttribute('readonly', '');
ta.setAttribute('aria-hidden', 'true');

return ta;
}

Expand Down
Loading

0 comments on commit 28bdfc6

Please sign in to comment.