Skip to content

Commit

Permalink
Merge pull request #1567 from Infineon/1539-slide-double-click-needed…
Browse files Browse the repository at this point in the history
…-to-grab-a-handle

Slider: no more double click needed to grab a handle
  • Loading branch information
tishoyanchev authored Nov 7, 2024
2 parents e610a99 + 4c3afe7 commit 9670172
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 21 deletions.
2 changes: 1 addition & 1 deletion examples/wrapper-components/react-vite-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:local": "run-p preview:link watch:library"
},
"dependencies": {
"@infineon/infineon-design-system-react": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"@infineon/infineon-design-system-react": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"path": "^0.12.7",
"react": "^18.3.1",
"react-dom": "^18.3.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/wrapper-components/vue-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:local": "run-p preview:link watch:library"
},
"dependencies": {
"@infineon/infineon-design-system-vue": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"@infineon/infineon-design-system-vue": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"vite": "^5.0.12",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"version": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"command": {
"publish": {
"verifyAccess": false
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "components-angular",
"version": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"version": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -26,7 +26,7 @@
"@angular/platform-browser": "^18.0.0",
"@angular/platform-browser-dynamic": "^18.0.0",
"@angular/router": "^18.0.0",
"@infineon/infineon-design-system-angular": "^25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"@infineon/infineon-design-system-angular": "^25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"typescript": "~5.4.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infineon/infineon-design-system-angular",
"version": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"version": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"description": "Infineon design system Stencil web components for Angular",
"author": "Verena Lechner",
"license": "MIT",
Expand All @@ -11,7 +11,7 @@
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0",
"@infineon/design-system-tokens": "3.3.3",
"@infineon/infineon-design-system-stencil": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0"
"@infineon/infineon-design-system-stencil": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/components-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infineon/infineon-design-system-react",
"version": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"version": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"description": "Infineon design system Stencil web components for React",
"main": "./dist/index.js",
"types": "./dist/types/index.d.ts",
Expand Down Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"@infineon/design-system-tokens": "3.3.3",
"@infineon/infineon-design-system-stencil": "^25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"@infineon/infineon-design-system-stencil": "^25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"@stencil/react-output-target": "^0.7.1"
},
"auto": {
Expand Down
4 changes: 2 additions & 2 deletions packages/components-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infineon/infineon-design-system-vue",
"version": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"version": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"description": "Infineon design system Stencil web components for Vue",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@infineon/design-system-tokens": "3.3.3",
"@infineon/infineon-design-system-stencil": "^25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0"
"@infineon/infineon-design-system-stencil": "^25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0"
},
"auto": {
"plugins": [
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infineon/infineon-design-system-stencil",
"version": "25.17.1--canary.1564.3f949f032ad1ef5384e3224642054812c6d2794d.0",
"version": "25.18.1--canary.1567.6510a80557e0611c0b0130ba9658379ed51eab31.0",
"private": false,
"description": "Infineon design system Stencil web components",
"homepage": "https://infineon.github.io/infineon-design-system-stencil",
Expand Down
13 changes: 13 additions & 0 deletions packages/components/src/components/slider/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class IfxSlider {
}
this.ifxChange.emit({minVal: this.internalMinValue, maxVal: this.internalMaxValue});
this.updateValuePercent();
this.updateZIndexIfRangeSlider(target.id)
}

handleOnMouseLeaveOfRangeSlider(event: Event) {
Expand Down Expand Up @@ -132,6 +133,18 @@ export class IfxSlider {
}

}
}

// Ensures that the last used slider thumb stays on top of the other thumb in order to handle correct overlapping
// if min and max thumbs take the same value.
updateZIndexIfRangeSlider(targetId: string = '') {
if (targetId === 'max-slider') {
this.minInputRef.style.zIndex = '1';
this.maxInputRef.style.zIndex = '2';
} else {
this.minInputRef.style.zIndex = '2';
this.maxInputRef.style.zIndex = '1';
}
}

componentWillLoad() {
Expand Down

0 comments on commit 9670172

Please sign in to comment.