diff --git a/.prettierrc b/.prettierrc index 9f5fed81..6fcde683 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,7 @@ { - 'singleQuote': true, - 'trailingComma': 'es5', -} \ No newline at end of file + "trailingComma": "es5", + "tabWidth": 2, + "useTabs": false, + "semi": false, + "singleQuote": true +} diff --git a/README.md b/README.md index 97d30bc0..f5f33c41 100644 --- a/README.md +++ b/README.md @@ -22,27 +22,41 @@ npm install --save rimble-ui styled-components ## Usage ```jsx -import React, { Component } from 'react'; +import React, { Component } from 'react' -import { Button } from 'rimble-ui'; +import { Button } from 'rimble-ui' class Example extends Component { render() { - return ; + return } } ``` ## Change log +### 0.13.0 + +🚀 New Feature + +- Added crypto icons under the `Icon` component. + +🐛 Bug Fix + +- Fixed `Heading` component `as` prop not working. +- Fixed `Text` component `as` prop not working. +- Fixed `Select` component arrow icon placement. + ### 0.12.0 🚀 New Feature + - Updated all components to `styled-system` v5. ### 0.11.1 🐛 Bug Fix + - Fixed icon background color on `ToastMessage` component. #381 - fixed display prop not rendering correctly for `Icon` component. #380 - fixed disabled styling for `Slider` component. #414 @@ -50,9 +64,11 @@ class Example extends Component { ### 0.11.0 🚀 New Feature + - Added `BaseStyles` component 🐛 Bug Fix + - Updated `Text` component to pass `as` prop correctly. - Updated `Heading` component to pass `as` prop correctly. - Updated `Select` component to adjust width. @@ -62,6 +78,7 @@ class Example extends Component { - Fixed warnings when building library #376. 💅 Enhancement + - Adjusted `EthAddress` component padding. - Addeded default font sizes for `h1-h6` elements. - Styled `input[type="color"]` for better visibility. @@ -138,7 +155,7 @@ class Example extends Component { - Removed background color on Image component - 0.7.0 +### 0.7.0 - Flash component - Custom labels for PublicAddress component diff --git a/demo/src/App.js b/demo/src/App.js index ea56ffd1..96cd18b6 100644 --- a/demo/src/App.js +++ b/demo/src/App.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import React, { Component } from 'react' import { Avatar, @@ -34,10 +34,12 @@ import { BaseStyles, ThemeProvider, theme, -} from 'rimble-ui'; +} from 'rimble-ui' -import TestForm from './components/TestForm'; -import BaseLineGrid from './components/BaseLineGrid'; +import { Eth, Btc } from '@rimble/icons' + +import TestForm from './components/TestForm' +import BaseLineGrid from './components/BaseLineGrid' const testTheme = { ...theme, @@ -53,16 +55,15 @@ const testTheme = { danger: 'orangered', info: 'blue', }, -}; +} const selectOptions = [ { value: '123', label: 'One Two Three' }, { value: 'abc', label: 'A B C' }, -]; +] const testComponents = props => ( -

H1 - Quick zephyrs blow, vexing daft Jim.

H1 - Quick zephyrs blow, vexing daft Jim.

H1 - Quick zephyrs blow, vexing daft Jim.

@@ -77,55 +78,73 @@ const testComponents = props => ( H5 - Quick zephyrs blow, vexing daft Jim. H6 - Quick zephyrs blow, vexing daft Jim. - H1 - Quick zephyrs blow, vexing daft Jim. - H2 - Quick zephyrs blow, vexing daft Jim. - H3 - Quick zephyrs blow, vexing daft Jim. - H4 - Quick zephyrs blow, vexing daft Jim. - H5 - Quick zephyrs blow, vexing daft Jim. - H6 - Quick zephyrs blow, vexing daft Jim. + + H1 - Quick zephyrs blow, vexing daft Jim. + + + H2 - Quick zephyrs blow, vexing daft Jim. + + + H3 - Quick zephyrs blow, vexing daft Jim. + + + H4 - Quick zephyrs blow, vexing daft Jim. + + + H5 - Quick zephyrs blow, vexing daft Jim. + + + H6 - Quick zephyrs blow, vexing daft Jim. + XL - Quick zephyrs blow, vexing daft Jim. - H1 - Quick zephyrs blow, vexing daft Jim. + + H1 - Quick zephyrs blow, vexing daft Jim. + - H2 - Quick zephyrs blow, vexing daft Jim. + + H2 - Quick zephyrs blow, vexing daft Jim. + - H3 - Quick zephyrs blow, vexing daft Jim. + + H3 - Quick zephyrs blow, vexing daft Jim. + - H4 - Quick zephyrs blow, vexing daft Jim. + + H4 - Quick zephyrs blow, vexing daft Jim. + - H5 - Quick zephyrs blow, vexing daft Jim. + + H5 - Quick zephyrs blow, vexing daft Jim. + - H6 - Quick zephyrs blow, vexing daft Jim. + + H6 - Quick zephyrs blow, vexing daft Jim. + SX - Quick zephyrs blow, vexing daft Jim. - 1 / 300 — - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta + 1 / 300 — Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta quibusdam, assumenda officiis. - 2 / 400 — - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta + 2 / 400 — Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta quibusdam, assumenda officiis. - 3 / 600 — - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta + 3 / 600 — Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta quibusdam, assumenda officiis. - 4 / 700 — - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta + 4 / 700 — Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta quibusdam, assumenda officiis. I'm a Link! - + ( - - + + + Icon component from rimble-ui + + + + + + + + Icon component from rimble-ui using "primary" color from theme + + + + + + + Icon component from rimble-ui, color="green" + + + + + + Icons imported as components from @rimble/icons + + + + + hover me @@ -223,7 +269,7 @@ const testComponents = props => ( - + @@ -269,9 +315,9 @@ const testComponents = props => ( Heading Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam autem - ratione doloribus quidem neque provident eius error dignissimos - delectus architecto nemo quos alias sunt voluptate impedit, facilis - sequi tempore. Amet! + ratione doloribus quidem neque provident eius error dignissimos delectus + architecto nemo quos alias sunt voluptate impedit, facilis sequi + tempore. Amet! @@ -281,18 +327,10 @@ const testComponents = props => ( - - Connect with MetaMask - - - Connect with MetaMask - - - Connect with uPort - - - Connect with uPort - + Connect with MetaMask + Connect with MetaMask + Connect with uPort + Connect with uPort @@ -322,26 +360,22 @@ const testComponents = props => ( I am a DANGER Flash with a Link -); +) export default class App extends Component { render() { return ( - - {testComponents()} - + {testComponents()} - - {testComponents()} - + {testComponents()} - ); + ) } } diff --git a/demo/yarn.lock b/demo/yarn.lock index 1402eb08..6787f30f 100644 --- a/demo/yarn.lock +++ b/demo/yarn.lock @@ -1106,6 +1106,115 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== +"@rimble/icons@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@rimble/icons/-/icons-1.0.2.tgz#0cc552e57399370e3d09a9715df1653035f99d13" + integrity sha512-k0gGguuTtw/tkTY3RgVv9uQSy7Tw+nl7yY/x7ifSWyF2o7WhomwIr7sx9xWNhnIeEIACLzSxVUIzw1Mm32gzqA== + +"@styled-system/background@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/background/-/background-5.1.2.tgz#75c63d06b497ab372b70186c0bf608d62847a2ba" + integrity sha512-jtwH2C/U6ssuGSvwTN3ri/IyjdHb8W9X/g8Y0JLcrH02G+BW3OS8kZdHphF1/YyRklnrKrBT2ngwGUK6aqqV3A== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/border@^5.1.5": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@styled-system/border/-/border-5.1.5.tgz#0493d4332d2b59b74bb0d57d08c73eb555761ba6" + integrity sha512-JvddhNrnhGigtzWRCVuAHepniyVi6hBlimxWDVAdcTuk7aRn9BYJUwfHslURtwYFsF5FoEs8Zmr1oZq2M1AP0A== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/color@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/color/-/color-5.1.2.tgz#b8d6b4af481faabe4abca1a60f8daa4ccc2d9f43" + integrity sha512-1kCkeKDZkt4GYkuFNKc7vJQMcOmTl3bJY3YBUs7fCNM6mMYJeT1pViQ2LwBSBJytj3AB0o4IdLBoepgSgGl5MA== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/core@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/core/-/core-5.1.2.tgz#b8b7b86455d5a0514f071c4fa8e434b987f6a772" + integrity sha512-XclBDdNIy7OPOsN4HBsawG2eiWfCcuFt6gxKn1x4QfMIgeO6TOlA2pZZ5GWZtIhCUqEPTgIBta6JXsGyCkLBYw== + dependencies: + object-assign "^4.1.1" + +"@styled-system/css@^5.1.5": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@styled-system/css/-/css-5.1.5.tgz#0460d5f3ff962fa649ea128ef58d9584f403bbbc" + integrity sha512-XkORZdS5kypzcBotAMPBoeckDs9aSZVkvrAlq5K3xP8IMAUek+x2O4NtwoSgkYkWWzVBu6DGdFZLR790QWGG+A== + +"@styled-system/flexbox@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/flexbox/-/flexbox-5.1.2.tgz#077090f43f61c3852df63da24e4108087a8beecf" + integrity sha512-6hHV52+eUk654Y1J2v77B8iLeBNtc+SA3R4necsu2VVinSD7+XY5PCCEzBFaWs42dtOEDIa2lMrgL0YBC01mDQ== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/grid@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/grid/-/grid-5.1.2.tgz#7165049877732900b99cd00759679fbe45c6c573" + integrity sha512-K3YiV1KyHHzgdNuNlaw8oW2ktMuGga99o1e/NAfTEi5Zsa7JXxzwEnVSDSBdJC+z6R8WYTCYRQC6bkVFcvdTeg== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/layout@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/layout/-/layout-5.1.2.tgz#12d73e79887e10062f4dbbbc2067462eace42339" + integrity sha512-wUhkMBqSeacPFhoE9S6UF3fsMEKFv91gF4AdDWp0Aym1yeMPpqz9l9qS/6vjSsDPF7zOb5cOKC3tcKKOMuDCPw== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/position@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/position/-/position-5.1.2.tgz#56961266566836f57a24d8e8e33ce0c1adb59dd3" + integrity sha512-60IZfMXEOOZe3l1mCu6sj/2NAyUmES2kR9Kzp7s2D3P4qKsZWxD1Se1+wJvevb+1TP+ZMkGPEYYXRyU8M1aF5A== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/prop-types@^5.1.2": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@styled-system/prop-types/-/prop-types-5.1.5.tgz#f813b78c583f9a3a9693d5eb185c2fd3dd0448a8" + integrity sha512-D/0d0ltp8QGhwrRifivQeIdoKkQDpFIGi98DXdpRXOaJStYXLx6aBSfS/YYIijbF1nZs1hWlAgXxYvDhCxHLSA== + dependencies: + prop-types "^15.7.2" + +"@styled-system/shadow@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/shadow/-/shadow-5.1.2.tgz#beddab28d7de03cd0177a87ac4ed3b3b6d9831fd" + integrity sha512-wqniqYb7XuZM7K7C0d1Euxc4eGtqEe/lvM0WjuAFsQVImiq6KGT7s7is+0bNI8O4Dwg27jyu4Lfqo/oIQXNzAg== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/space@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/space/-/space-5.1.2.tgz#38925d2fa29a41c0eb20e65b7c3efb6e8efce953" + integrity sha512-+zzYpR8uvfhcAbaPXhH8QgDAV//flxqxSjHiS9cDFQQUSznXMQmxJegbhcdEF7/eNnJgHeIXv1jmny78kipgBA== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/theme-get@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/theme-get/-/theme-get-5.1.2.tgz#b40a00a44da63b7a6ed85f73f737c4defecd6049" + integrity sha512-afAYdRqrKfNIbVgmn/2Qet1HabxmpRnzhFwttbGr6F/mJ4RDS/Cmn+KHwHvNXangQsWw/5TfjpWV+rgcqqIcJQ== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/typography@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@styled-system/typography/-/typography-5.1.2.tgz#65fb791c67d50cd2900d234583eaacdca8c134f7" + integrity sha512-BxbVUnN8N7hJ4aaPOd7wEsudeT7CxarR+2hns8XCX1zp0DFfbWw4xYa/olA0oQaqx7F1hzDg+eRaGzAJbF+jOg== + dependencies: + "@styled-system/core" "^5.1.2" + +"@styled-system/variant@^5.1.5": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@styled-system/variant/-/variant-5.1.5.tgz#8446d8aad06af3a4c723d717841df2dbe4ddeafd" + integrity sha512-Yn8hXAFoWIro8+Q5J8YJd/mP85Teiut3fsGVR9CAxwgNfIAiqlYxsk5iHU7VHJks/0KjL4ATSjmbtCDC/4l1qw== + dependencies: + "@styled-system/core" "^5.1.2" + "@styled-system/css" "^5.1.5" + "@svgr/babel-plugin-add-jsx-attribute@^4.2.0": version "4.2.0" resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz#dadcb6218503532d6884b210e7f3c502caaa44b1" @@ -8587,13 +8696,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rmdi@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/rmdi/-/rmdi-1.0.1.tgz#0284dacf86105181bc9b14df61df8ba8728631d6" - integrity sha512-1oxFIH6/mZrw6HN6M0PCogMf783FUKOD2tZW5HyX+Ok6nUodd4kob2UvzzFtaEx7GuD8KzaQPid/pbFjO5D7uw== - dependencies: - styled-system "^2.0.0" - rollup-pluginutils@^2.8.1: version "2.8.2" resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" @@ -9305,20 +9407,24 @@ style-loader@1.0.0: loader-utils "^1.2.3" schema-utils "^2.0.1" -styled-system@^2.0.0: - version "2.3.6" - resolved "https://registry.yarnpkg.com/styled-system/-/styled-system-2.3.6.tgz#a38c1ffa04a5c35adec46473984e463c48b16f7c" - integrity sha512-lGAh/8tC70f5hBUD7w0UOWCKyOBK2AzzWKu9BGzqla/Yjx8PzrvaciA7uATbm493hXTfRrecSdLdrIUET5IYnA== - dependencies: - prop-types "^15.6.0" - -styled-system@^4.1.0: - version "4.2.4" - resolved "https://registry.yarnpkg.com/styled-system/-/styled-system-4.2.4.tgz#8909f91396c30b92295b4eddec5f7b89f8c8d767" - integrity sha512-44X7n09gDvwx7yjquEXsjiNALK0dxGgAJdpO5cb/PdL+D4mhSLKWig4/EhH4vHJLbwu/kumURHyvKxygaBfg0A== - dependencies: - "@babel/runtime" "^7.4.2" - prop-types "^15.7.2" +styled-system@^5.1.2: + version "5.1.5" + resolved "https://registry.yarnpkg.com/styled-system/-/styled-system-5.1.5.tgz#e362d73e1dbb5641a2fd749a6eba1263dc85075e" + integrity sha512-7VoD0o2R3RKzOzPK0jYrVnS8iJdfkKsQJNiLRDjikOpQVqQHns/DXWaPZOH4tIKkhAT7I6wIsy9FWTWh2X3q+A== + dependencies: + "@styled-system/background" "^5.1.2" + "@styled-system/border" "^5.1.5" + "@styled-system/color" "^5.1.2" + "@styled-system/core" "^5.1.2" + "@styled-system/flexbox" "^5.1.2" + "@styled-system/grid" "^5.1.2" + "@styled-system/layout" "^5.1.2" + "@styled-system/position" "^5.1.2" + "@styled-system/shadow" "^5.1.2" + "@styled-system/space" "^5.1.2" + "@styled-system/typography" "^5.1.2" + "@styled-system/variant" "^5.1.5" + object-assign "^4.1.1" stylehacks@^4.0.0: version "4.0.3" diff --git a/package.json b/package.json index 3b6dca21..a3084c75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rimble-ui", - "version": "0.12.0", + "version": "0.13.0", "description": "Rimble Design System react component library.", "author": "ConsenSys Design", "homepage": "https://rimble.consensys.design/", @@ -23,6 +23,7 @@ }, "dependencies": { "@d8660091/react-popper": "^1.0.4", + "@rimble/icons": "^1.0.2", "@styled-system/prop-types": "^5.1.2", "@styled-system/theme-get": "^5.1.2", "@svgr/rollup": "^4.2.0", @@ -31,9 +32,8 @@ "mixin-deep": "^2.0.1", "polished": "^3.2.0", "qrcode.react": "^0.9.3", - "rmdi": "^1.0.1", "set-value": "^3.0.1", - "styled-system": "^5.1.2" + "styled-system": "^5.1.5" }, "peerDependencies": { "prop-types": "^15.7.2", @@ -75,7 +75,7 @@ "eslint-plugin-react": "^7.10.0", "eslint-plugin-standard": "^3.1.0", "husky": "^1.3.1", - "jest-styled-components": "^6.3.3", + "jest-styled-components": "^6.3.4", "lint-staged": "^8.1.5", "prettier": "^1.16.4", "prop-types": "^15.7.2", @@ -88,7 +88,7 @@ "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-peer-deps-external": "^2.2.0", "rollup-plugin-url": "^2.2.2", - "styled-components": "^4.3.0" + "styled-components": "^4.4.1" }, "files": [ "dist" @@ -96,6 +96,9 @@ "jest": { "snapshotSerializers": [ "enzyme-to-json/serializer" + ], + "transformIgnorePatterns": [ + "node_modules/(?!(@rimble/icons)/)" ] }, "lint-staged": { diff --git a/src/Button/__snapshots__/Button.test.js.snap b/src/Button/__snapshots__/Button.test.js.snap index 1e823960..8e59a8d5 100644 --- a/src/Button/__snapshots__/Button.test.js.snap +++ b/src/Button/__snapshots__/Button.test.js.snap @@ -9,6 +9,13 @@ exports[`Button Icon component sanity matches default snapshot 1`] = ` display: inline-flex; } +.c2 { + -webkit-flex: none; + -ms-flex: none; + flex: none; + color: inherit; +} + .c0 { box-sizing: border-box; position: relative; @@ -154,7 +161,8 @@ exports[`Button Icon component sanity matches default snapshot 1`] = ` display="inline-flex" > + @@ -177,6 +189,13 @@ exports[`Button Icon component sanity matches themed snapshot 1`] = ` display: inline-flex; } +.c2 { + -webkit-flex: none; + -ms-flex: none; + flex: none; + color: inherit; +} + .c0 { box-sizing: border-box; position: relative; @@ -322,7 +341,8 @@ exports[`Button Icon component sanity matches themed snapshot 1`] = ` display="inline-flex" > + @@ -345,6 +369,13 @@ exports[`Button Icon only component sanity matches default snapshot 1`] = ` display: inline-flex; } +.c2 { + -webkit-flex: none; + -ms-flex: none; + flex: none; + color: inherit; +} + .c0 { box-sizing: border-box; position: relative; @@ -491,7 +522,8 @@ exports[`Button Icon only component sanity matches default snapshot 1`] = ` display="inline-flex" > + @@ -3033,6 +3077,13 @@ exports[`Loading Button component sanity matches default snapshot 2`] = ` display: inline-flex; } +.c2 { + -webkit-flex: none; + -ms-flex: none; + flex: none; + color: inherit; +} + .c0 { box-sizing: border-box; position: relative; @@ -3179,7 +3230,8 @@ exports[`Loading Button component sanity matches default snapshot 2`] = ` display="inline-flex" > + +
+ +
input:checked ~ svg[name='checked'] { display: block; } -`; +` const StyledLabel = styled(Box)` & { @@ -56,7 +56,7 @@ const StyledLabel = styled(Box)` &:hover input:not(:disabled) ~ svg[name='unchecked'] { fill: currentColor; } -`; +` const Checkbox = React.forwardRef( ({ className, label, name, value, id, ...props }, ref) => ( @@ -78,8 +78,8 @@ const Checkbox = React.forwardRef( ref={ref} {...props} /> - - + + ) -); +) StyledWrapper.defaultProps = { theme, -}; +} Checkbox.defaultProps = { color: 'primary', -}; +} Checkbox.propTypes = { ...Box.propTypes, theme: PropTypes.object, label: PropTypes.string, -}; +} -Checkbox.displayName = 'Checkbox'; +Checkbox.displayName = 'Checkbox' -export default Checkbox; +export default Checkbox diff --git a/src/EthAddress/__snapshots__/EthAddress.test.js.snap b/src/EthAddress/__snapshots__/EthAddress.test.js.snap index dee7949e..9f2a9c9d 100644 --- a/src/EthAddress/__snapshots__/EthAddress.test.js.snap +++ b/src/EthAddress/__snapshots__/EthAddress.test.js.snap @@ -24,6 +24,20 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` display: inline-flex; } +.c7 { + -webkit-flex: none; + -ms-flex: none; + flex: none; + color: inherit; +} + +.c9 { + -webkit-flex: none; + -ms-flex: none; + flex: none; + color: inherit; +} + .c5 { box-sizing: border-box; width: small; @@ -163,7 +177,7 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` pointer-events: none; } -.c7 { +.c8 { box-sizing: border-box; width: small; height: 3rem; @@ -192,7 +206,7 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` padding: 0 1rem; } -.c7 { +.c8 { -webkit-font-smoothing: antialiased; -webkit-appearance: none; -moz-appearance: none; @@ -221,24 +235,24 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` padding: 0; } -.c7:hover { +.c8:hover { cursor: pointer; } -.c7:disabled { +.c8:disabled { opacity: 0.5; pointer-events: none; } -.c7 > span.button-text { +.c8 > span.button-text { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; } -.c7 > div > svg, -.c7 > span.button-text { +.c8 > div > svg, +.c8 > span.button-text { position: relative; z-index: 1; -webkit-user-select: none; @@ -248,25 +262,25 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` pointer-events: none; } -.c7 > div > svg { +.c8 > div > svg { display: block; } -.c7 > div:first-child > svg { +.c8 > div:first-child > svg { margin-left: -0.5rem; margin-right: .5rem; } -.c7 > div:last-child > svg { +.c8 > div:last-child > svg { margin-left: .5rem; margin-right: -0.5rem; } -.c7 > div:first-child:last-child > svg { +.c8 > div:first-child:last-child > svg { margin: 0; } -.c7 { +.c8 { color: var(--contrast-color); background: #FFF; z-index: 0; @@ -274,22 +288,22 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` transition: all 0.15s ease; } -.c7:hover { +.c8:hover { -webkit-text-decoration: inherit; text-decoration: inherit; box-shadow: 0px 2px 4px rgba(0,0,0,0.2); } -.c7:hover::before { +.c8:hover::before { opacity: 0.9; } -.c7:active { +.c8:active { box-shadow: none; background: #000; } -.c7::before { +.c8::before { content: ''; position: absolute; top: 0; @@ -454,12 +468,17 @@ exports[`EthAddress component sanity matches default snapshot 1`] = ` display="inline-flex" > + @@ -469,7 +488,7 @@ exports[`EthAddress component sanity matches default snapshot 1`] = `