From ed1aacb623347f2156cd2b1c1592736e0ddf889d Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 23 Jun 2020 08:04:08 +0200 Subject: [PATCH] KEYCLOAK-13981 use a dropdown on smaller devices --- .../content/signingin-page/SigningInPage.tsx | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/themes/src/main/resources/theme/keycloak-preview/account/src/app/content/signingin-page/SigningInPage.tsx b/themes/src/main/resources/theme/keycloak-preview/account/src/app/content/signingin-page/SigningInPage.tsx index 7049b53a65..0bb563ef7d 100644 --- a/themes/src/main/resources/theme/keycloak-preview/account/src/app/content/signingin-page/SigningInPage.tsx +++ b/themes/src/main/resources/theme/keycloak-preview/account/src/app/content/signingin-page/SigningInPage.tsx @@ -29,6 +29,10 @@ import { StackItem, Title, TitleLevel, + DataListActionVisibility, + Dropdown, + DropdownPosition, + KebabToggle, } from '@patternfly/react-core'; import {AIACommand} from '../../util/AIACommand'; @@ -42,6 +46,7 @@ import {ContentPage} from '../ContentPage'; import {ContentAlert} from '../ContentAlert'; import { KeycloakContext } from '../../keycloak-service/KeycloakContext'; import { KeycloakService } from '../../keycloak-service/keycloak.service'; +import { css } from '@patternfly/react-styles'; declare const features: Features; @@ -81,6 +86,7 @@ interface SigningInPageProps extends RouteComponentProps { interface SigningInPageState { // Credential containers organized by category then type credentialContainers: CredContainerMap; + toggle: boolean } /** @@ -95,7 +101,8 @@ class SigningInPage extends React.Component {credContainer.createAction && - + + this.setState({ toggle: isOpen })} />} + isOpen={this.state.toggle} + dropdownItems={[ + ]} + /> + } + {credContainer.createAction && +