Use isBlock instead of css (#67)

* Use isBlock instead of css

* Make prettier happy

* Fix tests
This commit is contained in:
Stan Silvert 2020-09-05 15:37:42 -04:00 committed by GitHub
parent c6a310a827
commit 0eea5b8057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 17 deletions

View file

@ -2,8 +2,4 @@
.pf-c-brand {
height: 35px;
}
button.pf-c-button.pf-m-primary.realmSelectButton {
width: 100%;
}

View file

@ -61,10 +61,7 @@ export const RealmSelector = () => {
...dropdownItems,
<Divider key={1} />,
<DropdownItem component="div" key="add">
<Button
className="realmSelectButton"
onClick={() => history.push("/add-realm")}
>
<Button isBlock onClick={() => history.push("/add-realm")}>
Create Realm
</Button>
</DropdownItem>,

View file

@ -10,7 +10,7 @@ exports[`renders realm selector 1`] = `
component="div"
>
<Button
className="realmSelectButton"
isBlock={true}
onClick={[Function]}
>
Create Realm
@ -40,7 +40,7 @@ exports[`renders realm selector 1`] = `
component="div"
>
<Button
className="realmSelectButton"
isBlock={true}
onClick={[Function]}
>
Create Realm
@ -138,7 +138,7 @@ exports[`renders realm selector 1`] = `
>
<button
aria-disabled="false"
class="pf-c-button pf-m-primary realmSelectButton"
class="pf-c-button pf-m-primary pf-m-block"
data-ouia-component-id="2"
data-ouia-component-type="PF4/Button"
data-ouia-safe="true"
@ -225,7 +225,7 @@ exports[`renders realm selector 1`] = `
>
<button
aria-disabled="false"
class="pf-c-button pf-m-primary realmSelectButton"
class="pf-c-button pf-m-primary pf-m-block"
data-ouia-component-id="2"
data-ouia-component-type="PF4/Button"
data-ouia-safe="true"
@ -303,7 +303,7 @@ exports[`renders realm selector 2`] = `
component="div"
>
<Button
className="realmSelectButton"
isBlock={true}
onClick={[Function]}
>
Create Realm
@ -333,7 +333,7 @@ exports[`renders realm selector 2`] = `
component="div"
>
<Button
className="realmSelectButton"
isBlock={true}
onClick={[Function]}
>
Create Realm
@ -431,7 +431,7 @@ exports[`renders realm selector 2`] = `
>
<button
aria-disabled="false"
class="pf-c-button pf-m-primary realmSelectButton"
class="pf-c-button pf-m-primary pf-m-block"
data-ouia-component-id="2"
data-ouia-component-type="PF4/Button"
data-ouia-safe="true"
@ -518,7 +518,7 @@ exports[`renders realm selector 2`] = `
>
<button
aria-disabled="false"
class="pf-c-button pf-m-primary realmSelectButton"
class="pf-c-button pf-m-primary pf-m-block"
data-ouia-component-id="2"
data-ouia-component-type="PF4/Button"
data-ouia-safe="true"

View file

@ -6985,7 +6985,7 @@ commander@^2.11.0, commander@^2.19.0, commander@^2.20.0, commander@^2.8.1:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
commander@^4.0.1, commander@^4.1.1:
commander@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==