Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component IxSelect displays options outside viewport #419

Closed
CptGeo opened this issue Mar 2, 2023 · 1 comment · Fixed by #398
Closed

Component IxSelect displays options outside viewport #419

CptGeo opened this issue Mar 2, 2023 · 1 comment · Fixed by #398
Labels
type: bug Something isn't working
Milestone

Comments

@CptGeo
Copy link

CptGeo commented Mar 2, 2023

What happened?

When clicking on the Select field, the ix-dropdown component appears always under it, regardless of the position of the input.

This leads to a problematic UI/UX when the Select component is located in the lower part of a page that only takes 100% of viewport height size (e.g. login page).

Below you can see the described behavior:

demo

What type of frontend frameware are you seeing the problem on?

React

Which version of iX do you use?

v1.3.0

Code to produce this issue.

// .tsx file

import "./TestPage.scss";
import { IxSelect, IxSelectItem } from "@siemens/ix-react";


export function TestPage(): JSX.Element {

	return (
		<>
			<div className="full-viewport-page">
				<div className="flex-container">
					<h1>Test page</h1>
					<footer>
						<IxSelect>
							<IxSelectItem label="Value 1" value="1"></IxSelectItem>
							<IxSelectItem label="Value 2" value="2"></IxSelectItem>
							<IxSelectItem label="Value 3" value="3"></IxSelectItem>
						</IxSelect>
					</footer>
				</div>
			</div>
		</>
	);
}
// .scss file

.full-viewport-page{
	min-height: 100vh;

	.flex-container {
		display: flex;
		flex: 1 0;
		height: 100vh;
		flex-direction: column;
		justify-content: space-between;
	}
}
@CptGeo CptGeo added the triage We discuss this topic in our internal weekly label Mar 2, 2023
@danielleroux danielleroux added type: bug Something isn't working component: core and removed triage We discuss this topic in our internal weekly labels Mar 3, 2023
@danielleroux danielleroux added this to the 1.4.0 milestone Mar 3, 2023
@danielleroux danielleroux linked a pull request Mar 3, 2023 that will close this issue
14 tasks
@danielleroux
Copy link
Collaborator

Should be fixed with 1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants