From c811a07c8caf82d81b6f418d5eebdc3ed19b1813 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 5 Apr 2023 19:57:54 +0100 Subject: [PATCH] remove pill buttons --- README.md | 2 +- .../button-base/button-base.scss | 1 + ui/components/ui/button/button.component.js | 4 - ui/components/ui/button/buttons.scss | 121 +----------------- ui/helpers/constants/design-system.ts | 2 +- ui/pages/unlock-page/unlock-page.component.js | 14 +- 6 files changed, 5 insertions(+), 139 deletions(-) diff --git a/README.md b/README.md index 3d521f98e..5fde01191 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > 🦊 Minimalized version of MetaMask for my own personal use without the myriad of banners & buttons I will never use, and without that terrible Roboto typeface. -Screenshot 2023-03-17 at 12 53 19 +Screenshot 2023-04-05 at 19 58 35 **Don't blindly trust me and double check the changes before installing this in your own browser.** diff --git a/ui/components/component-library/button-base/button-base.scss b/ui/components/component-library/button-base/button-base.scss index 6b4e249c2..52496f528 100644 --- a/ui/components/component-library/button-base/button-base.scss +++ b/ui/components/component-library/button-base/button-base.scss @@ -5,6 +5,7 @@ cursor: pointer; vertical-align: middle; user-select: none; + font-weight: 600; &--block { display: block; diff --git a/ui/components/ui/button/button.component.js b/ui/components/ui/button/button.component.js index b43bafda1..55d64da33 100644 --- a/ui/components/ui/button/button.component.js +++ b/ui/components/ui/button/button.component.js @@ -7,7 +7,6 @@ const CLASSNAME_PRIMARY = 'btn-primary'; const CLASSNAME_SECONDARY = 'btn-secondary'; const CLASSNAME_RAISED = 'btn-raised'; const CLASSNAME_LARGE = 'btn--large'; -const CLASSNAME_ROUNDED = 'btn--rounded'; const CLASSNAME_INLINE = 'btn--inline'; const typeHash = { @@ -29,10 +28,8 @@ const Button = ({ children, icon, className, - rounded = true, ...buttonProps }) => { - const doRounding = rounded && type !== 'link' && type !== 'inline'; // To support using the Button component to render styled links that are semantic html // we swap the html tag we use to render this component and delete any buttonProps that // we know to be erroneous attributes for a link. We will likely want to extract Link @@ -56,7 +53,6 @@ const Button = ({ {this.context.t('unlock')}