diff --git a/.changeset/proud-rules-develop.md b/.changeset/proud-rules-develop.md deleted file mode 100644 index c1dbcf30ee6..00000000000 --- a/.changeset/proud-rules-develop.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@primer/react': major ---- - -Upgrades styled-components to v5 - - \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2ac9a473de8..0e0839d02ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "@styled-system/props": "^5.1.5", "@styled-system/theme-get": "^5.1.2", "@types/react-is": "^18.2.1", - "@types/styled-components": "5.1.26", + "@types/styled-components": "^5.1.11", "@types/styled-system": "^5.1.12", "@types/styled-system__css": "^5.0.16", "@types/styled-system__theme-get": "^5.0.1", @@ -100,7 +100,7 @@ "babel-plugin-dev-expression": "0.2.3", "babel-plugin-macros": "3.1.0", "babel-plugin-open-source": "1.3.4", - "babel-plugin-styled-components": "2.1.3", + "babel-plugin-styled-components": "2.1.1", "babel-plugin-transform-replace-expressions": "0.2.0", "babel-polyfill": "6.26.0", "change-case": "4.1.2", @@ -132,7 +132,7 @@ "jest-environment-jsdom": "29.4.3", "jest-fail-on-console": "3.1.1", "jest-matchmedia-mock": "1.1.0", - "jest-styled-components": "7.1.1", + "jest-styled-components": "6.3.4", "jest-watch-typeahead": "2.2.2", "jscodeshift": "0.14.0", "lint-staged": "13.2.2", @@ -164,8 +164,7 @@ "size-limit": "8.2.4", "storybook": "7.1.0", "storybook-addon-turbo-build": "2.0.1", - "storybook-css-modules": "1.0.8", - "styled-components": "5.3.11", + "styled-components": "4.4.1", "terser": "5.17.6", "ts-node": "10.9.1", "ts-toolbelt": "9.6.0", @@ -3444,24 +3443,18 @@ } }, "node_modules/@emotion/is-prop-valid": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz", - "integrity": "sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==", + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", + "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", "dev": true, "dependencies": { - "@emotion/memoize": "^0.8.1" + "@emotion/memoize": "0.7.4" } }, "node_modules/@emotion/memoize": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", - "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==", - "dev": true - }, - "node_modules/@emotion/stylis": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz", - "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==", + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", "dev": true }, "node_modules/@emotion/unitless": { @@ -12306,9 +12299,9 @@ "dev": true }, "node_modules/@types/styled-components": { - "version": "5.1.26", - "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.26.tgz", - "integrity": "sha512-KuKJ9Z6xb93uJiIyxo/+ksS7yLjS1KzG6iv5i78dhVg/X3u5t1H7juRWqVmodIdz6wGVaIApo1u01kmFRdJHVw==", + "version": "5.1.11", + "resolved": "https://registry.npmjs.org/@types/styled-components/-/styled-components-5.1.11.tgz", + "integrity": "sha512-u8g3bSw9KUiZY+S++gh+LlURGraqBe3MC5I5dygrNjGDHWWQfsmZZRTJ9K9oHU2CqWtxChWmJkDI/gp+TZPQMw==", "dependencies": { "@types/hoist-non-react-statics": "*", "@types/react": "*", @@ -13224,6 +13217,18 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, "node_modules/autoprefixer": { "version": "10.4.14", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", @@ -13802,16 +13807,16 @@ } }, "node_modules/babel-plugin-styled-components": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-2.1.3.tgz", - "integrity": "sha512-jBioLwBVHpOMU4NsueH/ADcHrjS0Y/WTpt2eGVmmuSFNEv2DF3XhcMncuZlbbjxQ4vzxg+yEr6E6TNjrIQbsJQ==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-2.1.1.tgz", + "integrity": "sha512-c8lJlszObVQPguHkI+akXv8+Jgb9Ccujx0EetL7oIvwU100LxO6XAGe45qry37wUL40a5U9f23SYrivro2XKhA==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-annotate-as-pure": "^7.16.0", + "@babel/helper-module-imports": "^7.16.0", "babel-plugin-syntax-jsx": "^6.18.0", "lodash": "^4.17.21", - "picomatch": "^2.3.1" + "picomatch": "^2.3.0" }, "peerDependencies": { "styled-components": ">= 2" @@ -14577,13 +14582,10 @@ } }, "node_modules/camelize": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz", - "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", + "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=", + "dev": true }, "node_modules/can-bind-to-host": { "version": "1.1.2", @@ -15763,6 +15765,18 @@ "node": ">=8" } }, + "node_modules/css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + } + }, "node_modules/css-blank-pseudo": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-6.0.0.tgz", @@ -15791,7 +15805,7 @@ "node_modules/css-color-keywords": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", - "integrity": "sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==", + "integrity": "sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=", "dev": true, "engines": { "node": ">=4" @@ -15901,16 +15915,22 @@ } }, "node_modules/css-to-react-native": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", - "integrity": "sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-2.3.2.tgz", + "integrity": "sha512-VOFaeZA053BqvvvqIA8c9n0+9vFppVBAHCp6JgFTtTMU3Mzi+XnelJ9XC9ul3BqFzZyQ5N+H0SnwsWT2Ebchxw==", "dev": true, "dependencies": { "camelize": "^1.0.0", "css-color-keywords": "^1.0.0", - "postcss-value-parser": "^4.0.2" + "postcss-value-parser": "^3.3.0" } }, + "node_modules/css-to-react-native/node_modules/postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, "node_modules/css-tree": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", @@ -16255,6 +16275,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, "node_modules/dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", @@ -25824,18 +25853,15 @@ "dev": true }, "node_modules/jest-styled-components": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/jest-styled-components/-/jest-styled-components-7.1.1.tgz", - "integrity": "sha512-OUq31R5CivBF8oy81dnegNQrRW13TugMol/Dz6ZnFfEyo03exLASod7YGwyHGuayYlKmCstPtz0RQ1+NrAbIIA==", + "version": "6.3.4", + "resolved": "https://registry.npmjs.org/jest-styled-components/-/jest-styled-components-6.3.4.tgz", + "integrity": "sha512-dc32l0/6n3FtsILODpvKNz6SLg50OmbJ/3r3oRh9jc2VIPPGZT5jWv7BKIcNCYH7E38ZK7uejNl3zJsCOIenng==", "dev": true, "dependencies": { - "@adobe/css-tools": "^4.0.1" - }, - "engines": { - "node": ">= 12" + "css": "^2.2.4" }, "peerDependencies": { - "styled-components": ">= 5" + "styled-components": "^2 || ^3 || ^4" } }, "node_modules/jest-util": { @@ -28161,6 +28187,12 @@ "node": ">= 4.0.0" } }, + "node_modules/memoize-one": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", + "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==", + "dev": true + }, "node_modules/memoizerific": { "version": "1.11.3", "resolved": "https://registry.npmjs.org/memoizerific/-/memoizerific-1.11.3.tgz", @@ -28195,6 +28227,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/merge-anything": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/merge-anything/-/merge-anything-2.4.4.tgz", + "integrity": "sha512-l5XlriUDJKQT12bH+rVhAHjwIuXWdAIecGwsYjv2LJo+dA1AeRTmeQS+3QBpO6lEthBMDi2IUMpLC1yyRvGlwQ==", + "dev": true, + "dependencies": { + "is-what": "^3.3.1" + } + }, "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", @@ -32924,6 +32965,13 @@ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true + }, "node_modules/resolve-url-loader": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz", @@ -33614,12 +33662,6 @@ "node": ">=8" } }, - "node_modules/shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", - "dev": true - }, "node_modules/shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -33836,6 +33878,20 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, "node_modules/source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", @@ -33846,6 +33902,13 @@ "source-map": "^0.6.0" } }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", + "dev": true + }, "node_modules/space-separated-tokens": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", @@ -34068,15 +34131,6 @@ "esbuild-loader": "^3.0.0" } }, - "node_modules/storybook-css-modules": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/storybook-css-modules/-/storybook-css-modules-1.0.8.tgz", - "integrity": "sha512-anITwllH6nLw0quPElVBLRrE8QDbcRv0Dgl8sKLOc4uiqw+g1GE2l21Stjx3Wyv2O6ZKJScbyOpOuuz3SmeaOQ==", - "dev": true, - "engines": { - "node": ">=14" - } - }, "node_modules/stream-shift": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", @@ -34303,35 +34357,37 @@ } }, "node_modules/styled-components": { - "version": "5.3.11", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz", - "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-4.4.1.tgz", + "integrity": "sha512-RNqj14kYzw++6Sr38n7197xG33ipEOktGElty4I70IKzQF1jzaD1U4xQ+Ny/i03UUhHlC5NWEO+d8olRCDji6g==", "dev": true, + "hasInstallScript": true, "dependencies": { "@babel/helper-module-imports": "^7.0.0", - "@babel/traverse": "^7.4.5", - "@emotion/is-prop-valid": "^1.1.0", - "@emotion/stylis": "^0.8.4", - "@emotion/unitless": "^0.7.4", - "babel-plugin-styled-components": ">= 1.12.0", - "css-to-react-native": "^3.0.0", - "hoist-non-react-statics": "^3.0.0", - "shallowequal": "^1.1.0", + "@babel/traverse": "^7.0.0", + "@emotion/is-prop-valid": "^0.8.1", + "@emotion/unitless": "^0.7.0", + "babel-plugin-styled-components": ">= 1", + "css-to-react-native": "^2.2.2", + "memoize-one": "^5.0.0", + "merge-anything": "^2.2.4", + "prop-types": "^15.5.4", + "react-is": "^16.6.0", + "stylis": "^3.5.0", + "stylis-rule-sheet": "^0.0.10", "supports-color": "^5.5.0" }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/styled-components" - }, "peerDependencies": { - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0", - "react-is": ">= 16.8.0" + "react": ">= 16.3.0", + "react-dom": ">= 16.3.0" } }, + "node_modules/styled-components/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, "node_modules/styled-system": { "version": "5.1.5", "resolved": "https://registry.npmjs.org/styled-system/-/styled-system-5.1.5.tgz", @@ -34368,6 +34424,21 @@ "postcss": "^8.2.15" } }, + "node_modules/stylis": { + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-3.5.4.tgz", + "integrity": "sha512-8/3pSmthWM7lsPBKv7NXkzn2Uc9W7NotcwGNpJaa3k7WMM1XDCA4MgT5k/8BIexd5ydZdboXtU90XH9Ec4Bv/Q==", + "dev": true + }, + "node_modules/stylis-rule-sheet": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz", + "integrity": "sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw==", + "dev": true, + "peerDependencies": { + "stylis": "^3.5.0" + } + }, "node_modules/stylus": { "version": "0.59.0", "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.59.0.tgz", @@ -35908,6 +35979,13 @@ "punycode": "^2.1.0" } }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true + }, "node_modules/url": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/url/-/url-0.11.1.tgz", diff --git a/package.json b/package.json index 64546632a5c..fdb174d9793 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@styled-system/props": "^5.1.5", "@styled-system/theme-get": "^5.1.2", "@types/react-is": "^18.2.1", - "@types/styled-components": "5.1.26", + "@types/styled-components": "^5.1.11", "@types/styled-system": "^5.1.12", "@types/styled-system__css": "^5.0.16", "@types/styled-system__theme-get": "^5.0.1", @@ -185,7 +185,7 @@ "babel-plugin-dev-expression": "0.2.3", "babel-plugin-macros": "3.1.0", "babel-plugin-open-source": "1.3.4", - "babel-plugin-styled-components": "2.1.3", + "babel-plugin-styled-components": "2.1.1", "babel-plugin-transform-replace-expressions": "0.2.0", "babel-polyfill": "6.26.0", "change-case": "4.1.2", @@ -217,7 +217,7 @@ "jest-environment-jsdom": "29.4.3", "jest-fail-on-console": "3.1.1", "jest-matchmedia-mock": "1.1.0", - "jest-styled-components": "7.1.1", + "jest-styled-components": "6.3.4", "jest-watch-typeahead": "2.2.2", "jscodeshift": "0.14.0", "lint-staged": "13.2.2", @@ -249,8 +249,7 @@ "size-limit": "8.2.4", "storybook": "7.1.0", "storybook-addon-turbo-build": "2.0.1", - "storybook-css-modules": "1.0.8", - "styled-components": "5.3.11", + "styled-components": "4.4.1", "terser": "5.17.6", "ts-node": "10.9.1", "ts-toolbelt": "9.6.0", diff --git a/src/CounterLabel/CounterLabel.tsx b/src/CounterLabel/CounterLabel.tsx index 7871e2c24a5..7de16f4405a 100644 --- a/src/CounterLabel/CounterLabel.tsx +++ b/src/CounterLabel/CounterLabel.tsx @@ -34,6 +34,7 @@ const CounterLabel = forwardRef( )} {...props} as="span" + // @ts-expect-error Box is expecting a divelement, but this component forces a span element ref={forwardedRef} > {children} diff --git a/src/NavList/__snapshots__/NavList.test.tsx.snap b/src/NavList/__snapshots__/NavList.test.tsx.snap index 0a4d94b1939..51c4560234b 100644 --- a/src/NavList/__snapshots__/NavList.test.tsx.snap +++ b/src/NavList/__snapshots__/NavList.test.tsx.snap @@ -88,11 +88,12 @@ exports[`NavList renders a simple list 1`] = ` --divider-color: rgba(208,215,222,0.48); } -[data-component="ActionList.Divider"] + .c1 { +[data-component="ActionList.Divider"] + .c2 { --divider-color: transparent !important; } -.c2:hover:not([aria-disabled]),.c2:focus:not([aria-disabled]), +.c2:hover:not([aria-disabled]), +.c2:focus:not([aria-disabled]), .c2[data-focus-visible-added]:not([aria-disabled]) { --divider-color: transparent; } @@ -168,11 +169,12 @@ exports[`NavList renders a simple list 1`] = ` --divider-color: rgba(208,215,222,0.48); } -[data-component="ActionList.Divider"] + .c1 { +[data-component="ActionList.Divider"] + .c6 { --divider-color: transparent !important; } -.c6:hover:not([aria-disabled]),.c6:focus:not([aria-disabled]), +.c6:hover:not([aria-disabled]), +.c6:focus:not([aria-disabled]), .c6[data-focus-visible-added]:not([aria-disabled]) { --divider-color: transparent; } @@ -360,6 +362,29 @@ exports[`NavList renders a simple list 1`] = ` `; exports[`NavList renders with groups 1`] = ` +.c8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + min-width: 0; +} + +.c9 { + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + font-weight: 400; +} + .c1 { height: 1px; background-color: rgba(208,215,222,0.48); @@ -394,29 +419,6 @@ exports[`NavList renders with groups 1`] = ` padding-inline-start: 0; } -.c8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-flex: 1; - -webkit-flex-grow: 1; - -ms-flex-positive: 1; - flex-grow: 1; - min-width: 0; -} - -.c9 { - -webkit-box-flex: 1; - -webkit-flex-grow: 1; - -ms-flex-positive: 1; - flex-grow: 1; - font-weight: 400; -} - .c0 { margin: 0; padding-inline-start: 0; @@ -481,11 +483,12 @@ exports[`NavList renders with groups 1`] = ` --divider-color: rgba(208,215,222,0.48); } -[data-component="ActionList.Divider"] + .c5 { +[data-component="ActionList.Divider"] + .c6 { --divider-color: transparent !important; } -.c6:hover:not([aria-disabled]),.c6:focus:not([aria-disabled]), +.c6:hover:not([aria-disabled]), +.c6:focus:not([aria-disabled]), .c6[data-focus-visible-added]:not([aria-disabled]) { --divider-color: transparent; } @@ -561,11 +564,12 @@ exports[`NavList renders with groups 1`] = ` --divider-color: rgba(208,215,222,0.48); } -[data-component="ActionList.Divider"] + .c5 { +[data-component="ActionList.Divider"] + .c10 { --divider-color: transparent !important; } -.c10:hover:not([aria-disabled]),.c10:focus:not([aria-disabled]), +.c10:hover:not([aria-disabled]), +.c10:focus:not([aria-disabled]), .c10[data-focus-visible-added]:not([aria-disabled]) { --divider-color: transparent; } @@ -781,11 +785,7 @@ exports[`NavList renders with groups 1`] = ` `; exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav contains the current item and is open 1`] = ` -.c2 { - list-style: none; -} - -.c5 { +.c4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -801,25 +801,35 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav } .c6 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; flex-grow: 1; + font-weight: 400; } -.c7 { +.c1 { + list-style: none; +} + +.c5 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; flex-grow: 1; - font-weight: 400; } -.c8 { +.c9 { + padding: 0; + margin: 0; + display: block; +} + +.c7 { height: 20px; -webkit-flex-shrink: 0; -ms-flex-negative: 0; @@ -829,17 +839,12 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav font-weight: initial; } -[data-variant="danger"]:hover .c1,[data-variant="danger"]:active .c8 { +[data-variant="danger"]:hover .c7, +[data-variant="danger"]:active .c7 { color: #1F2328; } -.c10 { - padding: 0; - margin: 0; - display: block; -} - -.c9 { +.c8 { -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); @@ -852,16 +857,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav padding-bottom: 8px; } -[data-component="ActionList.Divider"] + .c3 { - --divider-color: transparent !important; -} - -.c13:hover:not([aria-disabled]) + .c3, -.c13[data-focus-visible-added] + li { - --divider-color: transparent; -} - -.c11 { +.c10 { position: relative; display: -webkit-box; display: -webkit-flex; @@ -895,15 +891,15 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav background-color: rgba(208,215,222,0.24); } -.c11[aria-disabled] { +.c10[aria-disabled] { cursor: not-allowed; } -.c11 [data-component="ActionList.Item--DividerContainer"] { +.c10 [data-component="ActionList.Item--DividerContainer"] { position: relative; } -.c11 [data-component="ActionList.Item--DividerContainer"]::before { +.c10 [data-component="ActionList.Item--DividerContainer"]::before { content: " "; display: block; position: absolute; @@ -914,25 +910,26 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav border-color: var(--divider-color,transparent); } -.c11:not(:first-of-type) { +.c10:not(:first-of-type) { --divider-color: rgba(208,215,222,0.48); } -[data-component="ActionList.Divider"] + .c3 { +[data-component="ActionList.Divider"] + .c10 { --divider-color: transparent !important; } -.c11:hover:not([aria-disabled]),.c11:focus:not([aria-disabled]), -.c11[data-focus-visible-added]:not([aria-disabled]) { +.c10:hover:not([aria-disabled]), +.c10:focus:not([aria-disabled]), +.c10[data-focus-visible-added]:not([aria-disabled]) { --divider-color: transparent; } -.c11:hover:not([aria-disabled]) + .c3, -.c11[data-focus-visible-added] + li { +.c10:hover:not([aria-disabled]) + .c2, +.c10[data-focus-visible-added] + li { --divider-color: transparent; } -.c11::after { +.c10::after { position: absolute; top: calc(50% - 12px); left: -8px; @@ -943,7 +940,42 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav border-radius: 6px; } -.c4 { +.c12:hover:not([aria-disabled]) + .c2, +.c12[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c13:hover:not([aria-disabled]) + .c2, +.c13[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c14:hover:not([aria-disabled]) + .c2, +.c14[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c15:hover:not([aria-disabled]) + .c2, +.c15[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c16:hover:not([aria-disabled]) + .c2, +.c16[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c17:hover:not([aria-disabled]) + .c2, +.c17[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c18:hover:not([aria-disabled]) + .c2, +.c18[data-focus-visible-added] + li { + --divider-color: transparent; +} + +.c3 { position: relative; display: -webkit-box; display: -webkit-flex; @@ -975,15 +1007,15 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav font-weight: 600; } -.c4[aria-disabled] { +.c3[aria-disabled] { cursor: not-allowed; } -.c4 [data-component="ActionList.Item--DividerContainer"] { +.c3 [data-component="ActionList.Item--DividerContainer"] { position: relative; } -.c4 [data-component="ActionList.Item--DividerContainer"]::before { +.c3 [data-component="ActionList.Item--DividerContainer"]::before { content: " "; display: block; position: absolute; @@ -994,7 +1026,7 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav border-color: var(--divider-color,transparent); } -.c4:not(:first-of-type) { +.c3:not(:first-of-type) { --divider-color: rgba(208,215,222,0.48); } @@ -1002,17 +1034,23 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav --divider-color: transparent !important; } -.c4:hover:not([aria-disabled]),.c4:focus:not([aria-disabled]), -.c4[data-focus-visible-added]:not([aria-disabled]) { +.c3:hover:not([aria-disabled]), +.c3:focus:not([aria-disabled]), +.c3[data-focus-visible-added]:not([aria-disabled]) { + --divider-color: transparent; +} + +.c3:hover:not([aria-disabled]) + .c2, +.c3[data-focus-visible-added] + li { --divider-color: transparent; } -.c4:hover:not([aria-disabled]) + .c3, -.c4[data-focus-visible-added] + li { +.c19:hover:not([aria-disabled]) + .c2, +.c19[data-focus-visible-added] + li { --divider-color: transparent; } -.c12 { +.c11 { color: #0969da; -webkit-text-decoration: none; text-decoration: none; @@ -1034,12 +1072,12 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav font-weight: 400; } -.c12:hover { +.c11:hover { -webkit-text-decoration: underline; text-decoration: underline; } -.c12:is(button) { +.c11:is(button) { display: inline-block; padding: 0; font-size: inherit; @@ -1056,66 +1094,58 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav appearance: none; } -.c12:hover { +.c11:hover { color: inherit; -webkit-text-decoration: none; text-decoration: none; } @media (hover:hover) and (pointer:fine) { - -} - -@media (forced-colors:active) { - -} - -@media (hover:hover) and (pointer:fine) { - .c11:hover:not([aria-disabled]) { + .c10:hover:not([aria-disabled]) { background-color: rgba(208,215,222,0.32); color: #1F2328; } - .c11:focus-visible, - .c11 > a:focus-visible { + .c10:focus-visible, + .c10 > a:focus-visible { outline: none; border: 2 solid; box-shadow: 0 0 0 2px #0969da; } - .c11:active:not([aria-disabled]) { + .c10:active:not([aria-disabled]) { background-color: rgba(208,215,222,0.48); color: #1F2328; } } @media (forced-colors:active) { - .c11:focus { + .c10:focus { outline: solid 1px transparent !important; } } @media (hover:hover) and (pointer:fine) { - .c4:hover:not([aria-disabled]) { + .c3:hover:not([aria-disabled]) { background-color: rgba(208,215,222,0.32); color: #1F2328; } - .c4:focus-visible, - .c4 > a:focus-visible { + .c3:focus-visible, + .c3 > a:focus-visible { outline: none; border: 2 solid; box-shadow: 0 0 0 2px #0969da; } - .c4:active:not([aria-disabled]) { + .c3:active:not([aria-disabled]) { background-color: rgba(208,215,222,0.48); color: #1F2328; } } @media (forced-colors:active) { - .c4:focus { + .c3:focus { outline: solid 1px transparent !important; } } @@ -1129,34 +1159,34 @@ exports[`NavList.Item with NavList.SubNav does not have active styles if SubNav >
  • Some content diff --git a/src/__tests__/__snapshots__/Dropdown.test.tsx.snap b/src/__tests__/__snapshots__/Dropdown.test.tsx.snap index 56843570766..5fc9fbc3644 100644 --- a/src/__tests__/__snapshots__/Dropdown.test.tsx.snap +++ b/src/__tests__/__snapshots__/Dropdown.test.tsx.snap @@ -1,6 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Dropdown renders consistently 1`] = ` +.c0 { + position: relative; + display: inline-block; +} + .c0 > summary { list-style: none; } @@ -9,13 +14,8 @@ exports[`Dropdown renders consistently 1`] = ` display: none; } -.c1 { - position: relative; - display: inline-block; -} -
    Hello! @@ -45,6 +45,10 @@ exports[`Dropdown.Button renders consistently 1`] = ` text-decoration: none; text-align: center; font-size: 14px; + color: #24292f; + background-color: #f6f8fa; + border: 1px solid rgba(31,35,40,0.15); + box-shadow: 0 1px 0 rgba(31,35,40,0.04),inset 0 1px 0 rgba(255,255,255,0.25); } .c0:hover { @@ -64,33 +68,26 @@ exports[`Dropdown.Button renders consistently 1`] = ` opacity: 0.6; } -.c1 { - color: #24292f; - background-color: #f6f8fa; - border: 1px solid rgba(31,35,40,0.15); - box-shadow: 0 1px 0 rgba(31,35,40,0.04),inset 0 1px 0 rgba(255,255,255,0.25); -} - -.c1:hover { +.c0:hover { background-color: #f3f4f6; border-color: rgba(31,35,40,0.15); } -.c1:focus { +.c0:focus { outline: solid 2px #0969da; } -.c1:active { +.c0:active { background-color: hsla(220,14%,94%,1); } -.c1:disabled { +.c0:disabled { color: #8c959f; background-color: #f6f8fa; border-color: rgba(31,35,40,0.15); } -.c2 { +.c1 { border: 4px solid transparent; margin-left: 12px; border-top-color: currentcolor; @@ -104,11 +101,11 @@ exports[`Dropdown.Button renders consistently 1`] = ` Hello!
    `; diff --git a/src/__tests__/__snapshots__/Popover.test.tsx.snap b/src/__tests__/__snapshots__/Popover.test.tsx.snap index c524d5caae9..07ec53303e0 100644 --- a/src/__tests__/__snapshots__/Popover.test.tsx.snap +++ b/src/__tests__/__snapshots__/Popover.test.tsx.snap @@ -7,7 +7,7 @@ exports[`Popover Popover.Content renders consistently 1`] = ` display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -18,22 +18,22 @@ exports[`Popover Popover.Content renders consistently 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -41,84 +41,84 @@ exports[`Popover Popover.Content renders consistently 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -126,72 +126,72 @@ exports[`Popover Popover.Content renders consistently 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } @@ -200,7 +200,7 @@ exports[`Popover Popover.Content renders consistently 1`] = ` open={true} >
    Hello!
    @@ -214,7 +214,7 @@ exports[`Popover renders consistently 1`] = ` display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -225,22 +225,22 @@ exports[`Popover renders consistently 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -248,84 +248,84 @@ exports[`Popover renders consistently 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -333,72 +333,72 @@ exports[`Popover renders consistently 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } @@ -407,7 +407,7 @@ exports[`Popover renders consistently 1`] = ` open={true} >
    Hello!
    @@ -421,7 +421,7 @@ exports[`Popover renders correctly for a caret position of bottom 1`] = ` display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -432,22 +432,22 @@ exports[`Popover renders correctly for a caret position of bottom 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -455,84 +455,84 @@ exports[`Popover renders correctly for a caret position of bottom 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -540,158 +540,104 @@ exports[`Popover renders correctly for a caret position of bottom 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } -
    -
    - Hello! -
    -
    -`; - -exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` -.c1 { - position: absolute; - z-index: 100; - display: block; +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; } -.c3 { - border: 1px solid #d0d7de; - border-radius: 6px; - position: relative; - width: 232px; - margin-right: auto; - margin-left: auto; - padding: 24px; - background-color: #ffffff; +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; } -.c3::before, -.c3::after { - position: absolute; - left: 50%; - display: inline-block; - content: ''; -} - -.c3::before { - top: -16px; - margin-left: -9px; - border: 8px solid transparent; - border-bottom-color: #d0d7de; -} - -.c3::after { - top: -14px; - margin-left: -8px; - border: 7px solid transparent; - border-bottom-color: #ffffff; -} - -.c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--bottom .c3::after, .c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { - top: auto; - border-bottom-color: transparent; -} - -.c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { - bottom: -16px; - border-top-color: #d0d7de; -} - -.c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, .c0.caret-pos--bottom-left .c3::after { bottom: -14px; - border-top-color: #ffffff; } -.c0.caret-pos--top-right .c2, +.c0.caret-pos--top-right .c3, .c0.caret-pos--bottom-right .c3 { right: -9px; margin-right: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { @@ -699,23 +645,23 @@ exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` margin-left: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before { right: 20px; } -.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { right: 21px; } -.c0.caret-pos--top-left .c2, +.c0.caret-pos--top-left .c3, .c0.caret-pos--bottom-left .c3 { left: -9px; margin-left: 0; } -.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--top-left .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { @@ -723,12 +669,12 @@ exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` margin-left: 0; } -.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { left: calc(24px + 1px); } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -746,7 +692,7 @@ exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -755,7 +701,7 @@ exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -764,78 +710,74 @@ exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); }
    Hello!
    `; -exports[`Popover renders correctly for a caret position of bottom-right 1`] = ` +exports[`Popover renders correctly for a caret position of bottom-left 1`] = ` .c1 { position: absolute; z-index: 100; display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -846,22 +788,22 @@ exports[`Popover renders correctly for a caret position of bottom-right 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -869,84 +811,84 @@ exports[`Popover renders correctly for a caret position of bottom-right 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -954,128 +896,76 @@ exports[`Popover renders correctly for a caret position of bottom-right 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } -
    -
    - Hello! -
    -
    -`; - -exports[`Popover renders correctly for a caret position of left 1`] = ` -.c1 { - position: absolute; - z-index: 100; - display: block; -} - -.c3 { - border: 1px solid #d0d7de; - border-radius: 6px; - position: relative; - width: 232px; - margin-right: auto; - margin-left: auto; - padding: 24px; - background-color: #ffffff; -} - -.c3::before, -.c3::after { - position: absolute; - left: 50%; - display: inline-block; - content: ''; -} - -.c3::before { - top: -16px; - margin-left: -9px; - border: 8px solid transparent; - border-bottom-color: #d0d7de; -} - -.c3::after { - top: -14px; - margin-left: -8px; - border: 7px solid transparent; - border-bottom-color: #ffffff; -} - -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--bottom .c3::after, @@ -1085,27 +975,25 @@ exports[`Popover renders correctly for a caret position of left 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before { bottom: -16px; - border-top-color: #d0d7de; } -.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom .c3::after, .c0.caret-pos--bottom-right .c3::after, .c0.caret-pos--bottom-left .c3::after { bottom: -14px; - border-top-color: #ffffff; } -.c0.caret-pos--top-right .c2, +.c0.caret-pos--top-right .c3, .c0.caret-pos--bottom-right .c3 { right: -9px; margin-right: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { @@ -1113,23 +1001,23 @@ exports[`Popover renders correctly for a caret position of left 1`] = ` margin-left: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before { right: 20px; } -.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { right: 21px; } -.c0.caret-pos--top-left .c2, +.c0.caret-pos--top-left .c3, .c0.caret-pos--bottom-left .c3 { left: -9px; margin-left: 0; } -.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--top-left .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { @@ -1137,12 +1025,12 @@ exports[`Popover renders correctly for a caret position of left 1`] = ` margin-left: 0; } -.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { left: calc(24px + 1px); } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1160,7 +1048,7 @@ exports[`Popover renders correctly for a caret position of left 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1169,7 +1057,7 @@ exports[`Popover renders correctly for a caret position of left 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -1178,78 +1066,74 @@ exports[`Popover renders correctly for a caret position of left 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); }
    Hello!
    `; -exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` +exports[`Popover renders correctly for a caret position of bottom-right 1`] = ` .c1 { position: absolute; z-index: 100; display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -1260,22 +1144,22 @@ exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -1283,76 +1167,2009 @@ exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; +} + +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + bottom: -14px; +} + +.c0.caret-pos--top-right .c3, +.c0.caret-pos--bottom-right .c3 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before { + right: 20px; +} + +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + right: 21px; +} + +.c0.caret-pos--top-left .c3, +.c0.caret-pos--bottom-left .c3 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before { + right: -16px; +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after { + right: -14px; +} + +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + left: -16px; +} + +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + left: -14px; +} + +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--left-top .c3::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + bottom: calc(16px + 1px); +} + +
    +
    + Hello! +
    +
    +`; + +exports[`Popover renders correctly for a caret position of left 1`] = ` +.c1 { + position: absolute; + z-index: 100; + display: block; +} + +.c2 { + border: 1px solid #d0d7de; + border-radius: 6px; + position: relative; + width: 232px; + margin-right: auto; + margin-left: auto; + padding: 24px; + background-color: #ffffff; +} + +.c2::before, +.c2::after { + position: absolute; + left: 50%; + display: inline-block; + content: ''; +} + +.c2::before { + top: -16px; + margin-left: -9px; + border: 8px solid transparent; + border-bottom-color: #d0d7de; +} + +.c2::after { + top: -14px; + margin-left: -8px; + border: 7px solid transparent; + border-bottom-color: #ffffff; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { + bottom: -16px; + border-top-color: #d0d7de; +} + +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + bottom: -14px; + border-top-color: #ffffff; +} + +.c0.caret-pos--top-right .c2, +.c0.caret-pos--bottom-right .c2 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before { + right: 20px; +} + +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + right: 21px; +} + +.c0.caret-pos--top-left .c2, +.c0.caret-pos--bottom-left .c2 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; +} + +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + bottom: -14px; +} + +.c0.caret-pos--top-right .c3, +.c0.caret-pos--bottom-right .c3 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before { + right: 20px; +} + +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + right: 21px; +} + +.c0.caret-pos--top-left .c3, +.c0.caret-pos--bottom-left .c3 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before { + right: -16px; +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after { + right: -14px; +} + +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + left: -16px; +} + +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + left: -14px; +} + +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--left-top .c3::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + bottom: calc(16px + 1px); +} + +
    +
    + Hello! +
    +
    +`; + +exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` +.c1 { + position: absolute; + z-index: 100; + display: block; +} + +.c2 { + border: 1px solid #d0d7de; + border-radius: 6px; + position: relative; + width: 232px; + margin-right: auto; + margin-left: auto; + padding: 24px; + background-color: #ffffff; +} + +.c2::before, +.c2::after { + position: absolute; + left: 50%; + display: inline-block; + content: ''; +} + +.c2::before { + top: -16px; + margin-left: -9px; + border: 8px solid transparent; + border-bottom-color: #d0d7de; +} + +.c2::after { + top: -14px; + margin-left: -8px; + border: 7px solid transparent; + border-bottom-color: #ffffff; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { + bottom: -16px; + border-top-color: #d0d7de; +} + +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + bottom: -14px; + border-top-color: #ffffff; +} + +.c0.caret-pos--top-right .c2, +.c0.caret-pos--bottom-right .c2 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before { + right: 20px; +} + +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + right: 21px; +} + +.c0.caret-pos--top-left .c2, +.c0.caret-pos--bottom-left .c2 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; +} + +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + bottom: -14px; +} + +.c0.caret-pos--top-right .c3, +.c0.caret-pos--bottom-right .c3 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before { + right: 20px; +} + +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + right: 21px; +} + +.c0.caret-pos--top-left .c3, +.c0.caret-pos--bottom-left .c3 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before { + right: -16px; +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after { + right: -14px; +} + +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + left: -16px; +} + +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + left: -14px; +} + +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--left-top .c3::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + bottom: calc(16px + 1px); +} + +
    +
    + Hello! +
    +
    +`; + +exports[`Popover renders correctly for a caret position of left-top 1`] = ` +.c1 { + position: absolute; + z-index: 100; + display: block; +} + +.c2 { + border: 1px solid #d0d7de; + border-radius: 6px; + position: relative; + width: 232px; + margin-right: auto; + margin-left: auto; + padding: 24px; + background-color: #ffffff; +} + +.c2::before, +.c2::after { + position: absolute; + left: 50%; + display: inline-block; + content: ''; +} + +.c2::before { + top: -16px; + margin-left: -9px; + border: 8px solid transparent; + border-bottom-color: #d0d7de; +} + +.c2::after { + top: -14px; + margin-left: -8px; + border: 7px solid transparent; + border-bottom-color: #ffffff; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { + bottom: -16px; + border-top-color: #d0d7de; +} + +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + bottom: -14px; + border-top-color: #ffffff; +} + +.c0.caret-pos--top-right .c2, +.c0.caret-pos--bottom-right .c2 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before { + right: 20px; +} + +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + right: 21px; +} + +.c0.caret-pos--top-left .c2, +.c0.caret-pos--bottom-left .c2 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; +} + +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + bottom: -14px; +} + +.c0.caret-pos--top-right .c3, +.c0.caret-pos--bottom-right .c3 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before { + right: 20px; +} + +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + right: 21px; +} + +.c0.caret-pos--top-left .c3, +.c0.caret-pos--bottom-left .c3 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before { + right: -16px; +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after { + right: -14px; +} + +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + left: -16px; +} + +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + left: -14px; +} + +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--left-top .c3::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + bottom: calc(16px + 1px); +} + +
    +
    + Hello! +
    +
    +`; + +exports[`Popover renders correctly for a caret position of right 1`] = ` +.c1 { + position: absolute; + z-index: 100; + display: block; +} + +.c2 { + border: 1px solid #d0d7de; + border-radius: 6px; + position: relative; + width: 232px; + margin-right: auto; + margin-left: auto; + padding: 24px; + background-color: #ffffff; +} + +.c2::before, +.c2::after { + position: absolute; + left: 50%; + display: inline-block; + content: ''; +} + +.c2::before { + top: -16px; + margin-left: -9px; + border: 8px solid transparent; + border-bottom-color: #d0d7de; +} + +.c2::after { + top: -14px; + margin-left: -8px; + border: 7px solid transparent; + border-bottom-color: #ffffff; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { + bottom: -16px; + border-top-color: #d0d7de; +} + +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + bottom: -14px; + border-top-color: #ffffff; +} + +.c0.caret-pos--top-right .c2, +.c0.caret-pos--bottom-right .c2 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before { + right: 20px; +} + +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + right: 21px; +} + +.c0.caret-pos--top-left .c2, +.c0.caret-pos--bottom-left .c2 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; +} + +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + bottom: -14px; +} + +.c0.caret-pos--top-right .c3, +.c0.caret-pos--bottom-right .c3 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before { + right: 20px; +} + +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + right: 21px; +} + +.c0.caret-pos--top-left .c3, +.c0.caret-pos--bottom-left .c3 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before { + right: -16px; +} + +.c0.caret-pos--right .c3::after, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--right-bottom .c3::after { + right: -14px; +} + +.c0.caret-pos--left .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--left-bottom .c3::before { + left: -16px; +} + +.c0.caret-pos--left .c3::after, +.c0.caret-pos--left-top .c3::after, +.c0.caret-pos--left-bottom .c3::after { + left: -14px; +} + +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--left-top .c3::before, +.c0.caret-pos--right-top .c3::after, +.c0.caret-pos--left-top .c3::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before, +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left-bottom .c3::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c3::after, +.c0.caret-pos--left-bottom .c3::after { + bottom: calc(16px + 1px); +} + +
    +
    + Hello! +
    +
    +`; + +exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` +.c1 { + position: absolute; + z-index: 100; + display: block; +} + +.c2 { + border: 1px solid #d0d7de; + border-radius: 6px; + position: relative; + width: 232px; + margin-right: auto; + margin-left: auto; + padding: 24px; + background-color: #ffffff; +} + +.c2::before, +.c2::after { + position: absolute; + left: 50%; + display: inline-block; + content: ''; +} + +.c2::before { + top: -16px; + margin-left: -9px; + border: 8px solid transparent; + border-bottom-color: #d0d7de; +} + +.c2::after { + top: -14px; + margin-left: -8px; + border: 7px solid transparent; + border-bottom-color: #ffffff; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { + bottom: -16px; + border-top-color: #d0d7de; +} + +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + bottom: -14px; + border-top-color: #ffffff; +} + +.c0.caret-pos--top-right .c2, +.c0.caret-pos--bottom-right .c2 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before { + right: 20px; +} + +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + right: 21px; +} + +.c0.caret-pos--top-left .c2, +.c0.caret-pos--bottom-left .c2 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--bottom-left .c3::before { + bottom: -16px; +} + +.c0.caret-pos--bottom .c3::after, +.c0.caret-pos--bottom-right .c3::after, +.c0.caret-pos--bottom-left .c3::after { + bottom: -14px; +} + +.c0.caret-pos--top-right .c3, +.c0.caret-pos--bottom-right .c3 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before, +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c3::before, +.c0.caret-pos--bottom-right .c3::before { + right: 20px; +} + +.c0.caret-pos--top-right .c3::after, +.c0.caret-pos--bottom-right .c3::after { + right: 21px; +} + +.c0.caret-pos--top-left .c3, +.c0.caret-pos--bottom-left .c3 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::before, +.c0.caret-pos--bottom-left .c3::before, +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c3::after, +.c0.caret-pos--bottom-left .c3::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c3::before, +.c0.caret-pos--right-top .c3::before, +.c0.caret-pos--right-bottom .c3::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right .c3::after, @@ -1367,7 +3184,7 @@ exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1376,7 +3193,7 @@ exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -1385,78 +3202,74 @@ exports[`Popover renders correctly for a caret position of left-bottom 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); }
    Hello!
    `; -exports[`Popover renders correctly for a caret position of left-top 1`] = ` +exports[`Popover renders correctly for a caret position of right-top 1`] = ` .c1 { position: absolute; z-index: 100; display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -1467,22 +3280,22 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -1490,6 +3303,161 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` } .c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + top: auto; + border-bottom-color: transparent; +} + +.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { + bottom: -16px; + border-top-color: #d0d7de; +} + +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { + bottom: -14px; + border-top-color: #ffffff; +} + +.c0.caret-pos--top-right .c2, +.c0.caret-pos--bottom-right .c2 { + right: -9px; + margin-right: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + left: auto; + margin-left: 0; +} + +.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--bottom-right .c2::before { + right: 20px; +} + +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { + right: 21px; +} + +.c0.caret-pos--top-left .c2, +.c0.caret-pos--bottom-left .c2 { + left: -9px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: 24px; + margin-left: 0; +} + +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { + left: calc(24px + 1px); +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: 50%; + left: auto; + margin-left: 0; + border-bottom-color: transparent; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + margin-top: calc((8px + 1px) * -1); +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + margin-top: -8px; +} + +.c0.caret-pos--right .c2::before, +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { + right: -16px; + border-left-color: #d0d7de; +} + +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { + right: -14px; + border-left-color: #ffffff; +} + +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { + left: -16px; + border-right-color: #d0d7de; +} + +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { + left: -14px; + border-right-color: #ffffff; +} + +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { + top: 24px; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + top: auto; +} + +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left-bottom .c2::before { + bottom: 16px; +} + +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { + bottom: calc(16px + 1px); +} + +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--bottom .c3::after, @@ -1499,27 +3467,25 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before { bottom: -16px; - border-top-color: #d0d7de; } -.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom .c3::after, .c0.caret-pos--bottom-right .c3::after, .c0.caret-pos--bottom-left .c3::after { bottom: -14px; - border-top-color: #ffffff; } -.c0.caret-pos--top-right .c2, +.c0.caret-pos--top-right .c3, .c0.caret-pos--bottom-right .c3 { right: -9px; margin-right: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { @@ -1527,23 +3493,23 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` margin-left: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before { right: 20px; } -.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { right: 21px; } -.c0.caret-pos--top-left .c2, +.c0.caret-pos--top-left .c3, .c0.caret-pos--bottom-left .c3 { left: -9px; margin-left: 0; } -.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--top-left .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { @@ -1551,12 +3517,12 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` margin-left: 0; } -.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { left: calc(24px + 1px); } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1574,7 +3540,7 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1583,7 +3549,7 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -1592,78 +3558,74 @@ exports[`Popover renders correctly for a caret position of left-top 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); }
    Hello!
    `; -exports[`Popover renders correctly for a caret position of right 1`] = ` +exports[`Popover renders correctly for a caret position of top 1`] = ` .c1 { position: absolute; z-index: 100; display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -1674,22 +3636,22 @@ exports[`Popover renders correctly for a caret position of right 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -1697,84 +3659,84 @@ exports[`Popover renders correctly for a caret position of right 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -1782,128 +3744,76 @@ exports[`Popover renders correctly for a caret position of right 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } -
    -
    - Hello! -
    -
    -`; - -exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` -.c1 { - position: absolute; - z-index: 100; - display: block; -} - -.c3 { - border: 1px solid #d0d7de; - border-radius: 6px; - position: relative; - width: 232px; - margin-right: auto; - margin-left: auto; - padding: 24px; - background-color: #ffffff; -} - -.c3::before, -.c3::after { - position: absolute; - left: 50%; - display: inline-block; - content: ''; -} - -.c3::before { - top: -16px; - margin-left: -9px; - border: 8px solid transparent; - border-bottom-color: #d0d7de; -} - -.c3::after { - top: -14px; - margin-left: -8px; - border: 7px solid transparent; - border-bottom-color: #ffffff; -} - -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--bottom .c3::after, @@ -1913,27 +3823,25 @@ exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before { bottom: -16px; - border-top-color: #d0d7de; } -.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom .c3::after, .c0.caret-pos--bottom-right .c3::after, .c0.caret-pos--bottom-left .c3::after { bottom: -14px; - border-top-color: #ffffff; } -.c0.caret-pos--top-right .c2, +.c0.caret-pos--top-right .c3, .c0.caret-pos--bottom-right .c3 { right: -9px; margin-right: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { @@ -1941,23 +3849,23 @@ exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` margin-left: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before { right: 20px; } -.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { right: 21px; } -.c0.caret-pos--top-left .c2, +.c0.caret-pos--top-left .c3, .c0.caret-pos--bottom-left .c3 { left: -9px; margin-left: 0; } -.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--top-left .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { @@ -1965,12 +3873,12 @@ exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` margin-left: 0; } -.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { left: calc(24px + 1px); } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1988,7 +3896,7 @@ exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -1997,7 +3905,7 @@ exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -2006,78 +3914,74 @@ exports[`Popover renders correctly for a caret position of right-bottom 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); }
    Hello!
    `; -exports[`Popover renders correctly for a caret position of right-top 1`] = ` +exports[`Popover renders correctly for a caret position of top-left 1`] = ` .c1 { position: absolute; z-index: 100; display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -2088,22 +3992,22 @@ exports[`Popover renders correctly for a caret position of right-top 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -2111,84 +4015,84 @@ exports[`Popover renders correctly for a caret position of right-top 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -2196,128 +4100,76 @@ exports[`Popover renders correctly for a caret position of right-top 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } -
    -
    - Hello! -
    -
    -`; - -exports[`Popover renders correctly for a caret position of top 1`] = ` -.c1 { - position: absolute; - z-index: 100; - display: block; -} - -.c3 { - border: 1px solid #d0d7de; - border-radius: 6px; - position: relative; - width: 232px; - margin-right: auto; - margin-left: auto; - padding: 24px; - background-color: #ffffff; -} - -.c3::before, -.c3::after { - position: absolute; - left: 50%; - display: inline-block; - content: ''; -} - -.c3::before { - top: -16px; - margin-left: -9px; - border: 8px solid transparent; - border-bottom-color: #d0d7de; -} - -.c3::after { - top: -14px; - margin-left: -8px; - border: 7px solid transparent; - border-bottom-color: #ffffff; -} - -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--bottom .c3::after, @@ -2327,27 +4179,25 @@ exports[`Popover renders correctly for a caret position of top 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before { bottom: -16px; - border-top-color: #d0d7de; } -.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom .c3::after, .c0.caret-pos--bottom-right .c3::after, .c0.caret-pos--bottom-left .c3::after { bottom: -14px; - border-top-color: #ffffff; } -.c0.caret-pos--top-right .c2, +.c0.caret-pos--top-right .c3, .c0.caret-pos--bottom-right .c3 { right: -9px; margin-right: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { @@ -2355,23 +4205,23 @@ exports[`Popover renders correctly for a caret position of top 1`] = ` margin-left: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before { right: 20px; } -.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { right: 21px; } -.c0.caret-pos--top-left .c2, +.c0.caret-pos--top-left .c3, .c0.caret-pos--bottom-left .c3 { left: -9px; margin-left: 0; } -.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--top-left .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { @@ -2379,12 +4229,12 @@ exports[`Popover renders correctly for a caret position of top 1`] = ` margin-left: 0; } -.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { left: calc(24px + 1px); } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -2402,7 +4252,7 @@ exports[`Popover renders correctly for a caret position of top 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -2411,7 +4261,7 @@ exports[`Popover renders correctly for a caret position of top 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -2420,78 +4270,74 @@ exports[`Popover renders correctly for a caret position of top 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); }
    Hello!
    `; -exports[`Popover renders correctly for a caret position of top-left 1`] = ` +exports[`Popover renders correctly for a caret position of top-right 1`] = ` .c1 { position: absolute; z-index: 100; display: block; } -.c3 { +.c2 { border: 1px solid #d0d7de; border-radius: 6px; position: relative; @@ -2502,22 +4348,22 @@ exports[`Popover renders correctly for a caret position of top-left 1`] = ` background-color: #ffffff; } -.c3::before, -.c3::after { +.c2::before, +.c2::after { position: absolute; left: 50%; display: inline-block; content: ''; } -.c3::before { +.c2::before { top: -16px; margin-left: -9px; border: 8px solid transparent; border-bottom-color: #d0d7de; } -.c3::after { +.c2::after { top: -14px; margin-left: -8px; border: 7px solid transparent; @@ -2525,84 +4371,84 @@ exports[`Popover renders correctly for a caret position of top-left 1`] = ` } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--bottom .c3::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { top: auto; border-bottom-color: transparent; } .c0.caret-pos--bottom .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--bottom-left .c3::before { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--bottom-left .c2::before { bottom: -16px; border-top-color: #d0d7de; } .c0.caret-pos--bottom .c2::after, -.c0.caret-pos--bottom-right .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-right .c2::after, +.c0.caret-pos--bottom-left .c2::after { bottom: -14px; border-top-color: #ffffff; } .c0.caret-pos--top-right .c2, -.c0.caret-pos--bottom-right .c3 { +.c0.caret-pos--bottom-right .c2 { right: -9px; margin-right: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before, -.c0.caret-pos--top-right .c3::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::before, +.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--bottom-right .c2::after { left: auto; margin-left: 0; } .c0.caret-pos--top-right .c2::before, -.c0.caret-pos--bottom-right .c3::before { +.c0.caret-pos--bottom-right .c2::before { right: 20px; } .c0.caret-pos--top-right .c2::after, -.c0.caret-pos--bottom-right .c3::after { +.c0.caret-pos--bottom-right .c2::after { right: 21px; } .c0.caret-pos--top-left .c2, -.c0.caret-pos--bottom-left .c3 { +.c0.caret-pos--bottom-left .c2 { left: -9px; margin-left: 0; } .c0.caret-pos--top-left .c2::before, -.c0.caret-pos--bottom-left .c3::before, -.c0.caret-pos--top-left .c3::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::before, +.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--bottom-left .c2::after { left: 24px; margin-left: 0; } .c0.caret-pos--top-left .c2::after, -.c0.caret-pos--bottom-left .c3::after { +.c0.caret-pos--bottom-left .c2::after { left: calc(24px + 1px); } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right .c3::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right .c2::after, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: 50%; left: auto; margin-left: 0; @@ -2610,128 +4456,76 @@ exports[`Popover renders correctly for a caret position of top-left 1`] = ` } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before, -.c0.caret-pos--left .c3::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--left .c2::before, +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { margin-top: calc((8px + 1px) * -1); } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left .c3::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left .c2::after, +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { margin-top: -8px; } .c0.caret-pos--right .c2::before, -.c0.caret-pos--right-top .c3::before, -.c0.caret-pos--right-bottom .c3::before { +.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-bottom .c2::before { right: -16px; border-left-color: #d0d7de; } .c0.caret-pos--right .c2::after, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--right-bottom .c3::after { +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--right-bottom .c2::after { right: -14px; border-left-color: #ffffff; } .c0.caret-pos--left .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--left-bottom .c2::before { left: -16px; border-right-color: #d0d7de; } .c0.caret-pos--left .c2::after, -.c0.caret-pos--left-top .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-top .c2::after, +.c0.caret-pos--left-bottom .c2::after { left: -14px; border-right-color: #ffffff; } .c0.caret-pos--right-top .c2::before, -.c0.caret-pos--left-top .c3::before, -.c0.caret-pos--right-top .c3::after, -.c0.caret-pos--left-top .c3::after { +.c0.caret-pos--left-top .c2::before, +.c0.caret-pos--right-top .c2::after, +.c0.caret-pos--left-top .c2::after { top: 24px; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before, -.c0.caret-pos--right-bottom .c3::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::before, +.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--left-bottom .c2::after { top: auto; } .c0.caret-pos--right-bottom .c2::before, -.c0.caret-pos--left-bottom .c3::before { +.c0.caret-pos--left-bottom .c2::before { bottom: 16px; } .c0.caret-pos--right-bottom .c2::after, -.c0.caret-pos--left-bottom .c3::after { +.c0.caret-pos--left-bottom .c2::after { bottom: calc(16px + 1px); } -
    -
    - Hello! -
    -
    -`; - -exports[`Popover renders correctly for a caret position of top-right 1`] = ` -.c1 { - position: absolute; - z-index: 100; - display: block; -} - -.c3 { - border: 1px solid #d0d7de; - border-radius: 6px; - position: relative; - width: 232px; - margin-right: auto; - margin-left: auto; - padding: 24px; - background-color: #ffffff; -} - -.c3::before, -.c3::after { - position: absolute; - left: 50%; - display: inline-block; - content: ''; -} - -.c3::before { - top: -16px; - margin-left: -9px; - border: 8px solid transparent; - border-bottom-color: #d0d7de; -} - -.c3::after { - top: -14px; - margin-left: -8px; - border: 7px solid transparent; - border-bottom-color: #ffffff; -} - -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--bottom .c3::after, @@ -2741,27 +4535,25 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--bottom .c2::before, +.c0.caret-pos--bottom .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--bottom-left .c3::before { bottom: -16px; - border-top-color: #d0d7de; } -.c0.caret-pos--bottom .c2::after, +.c0.caret-pos--bottom .c3::after, .c0.caret-pos--bottom-right .c3::after, .c0.caret-pos--bottom-left .c3::after { bottom: -14px; - border-top-color: #ffffff; } -.c0.caret-pos--top-right .c2, +.c0.caret-pos--top-right .c3, .c0.caret-pos--bottom-right .c3 { right: -9px; margin-right: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before, .c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { @@ -2769,23 +4561,23 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` margin-left: 0; } -.c0.caret-pos--top-right .c2::before, +.c0.caret-pos--top-right .c3::before, .c0.caret-pos--bottom-right .c3::before { right: 20px; } -.c0.caret-pos--top-right .c2::after, +.c0.caret-pos--top-right .c3::after, .c0.caret-pos--bottom-right .c3::after { right: 21px; } -.c0.caret-pos--top-left .c2, +.c0.caret-pos--top-left .c3, .c0.caret-pos--bottom-left .c3 { left: -9px; margin-left: 0; } -.c0.caret-pos--top-left .c2::before, +.c0.caret-pos--top-left .c3::before, .c0.caret-pos--bottom-left .c3::before, .c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { @@ -2793,12 +4585,12 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` margin-left: 0; } -.c0.caret-pos--top-left .c2::after, +.c0.caret-pos--top-left .c3::after, .c0.caret-pos--bottom-left .c3::after { left: calc(24px + 1px); } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -2816,7 +4608,7 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` border-bottom-color: transparent; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left .c3::before, @@ -2825,7 +4617,7 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` margin-top: calc((8px + 1px) * -1); } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left .c3::after, @@ -2834,54 +4626,50 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` margin-top: -8px; } -.c0.caret-pos--right .c2::before, +.c0.caret-pos--right .c3::before, .c0.caret-pos--right-top .c3::before, .c0.caret-pos--right-bottom .c3::before { right: -16px; - border-left-color: #d0d7de; } -.c0.caret-pos--right .c2::after, +.c0.caret-pos--right .c3::after, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--right-bottom .c3::after { right: -14px; - border-left-color: #ffffff; } -.c0.caret-pos--left .c2::before, +.c0.caret-pos--left .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--left-bottom .c3::before { left: -16px; - border-right-color: #d0d7de; } -.c0.caret-pos--left .c2::after, +.c0.caret-pos--left .c3::after, .c0.caret-pos--left-top .c3::after, .c0.caret-pos--left-bottom .c3::after { left: -14px; - border-right-color: #ffffff; } -.c0.caret-pos--right-top .c2::before, +.c0.caret-pos--right-top .c3::before, .c0.caret-pos--left-top .c3::before, .c0.caret-pos--right-top .c3::after, .c0.caret-pos--left-top .c3::after { top: 24px; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before, .c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { top: auto; } -.c0.caret-pos--right-bottom .c2::before, +.c0.caret-pos--right-bottom .c3::before, .c0.caret-pos--left-bottom .c3::before { bottom: 16px; } -.c0.caret-pos--right-bottom .c2::after, +.c0.caret-pos--right-bottom .c3::after, .c0.caret-pos--left-bottom .c3::after { bottom: calc(16px + 1px); } @@ -2891,7 +4679,7 @@ exports[`Popover renders correctly for a caret position of top-right 1`] = ` open={true} >
    Hello!
    diff --git a/src/__tests__/__snapshots__/SelectMenu.test.tsx.snap b/src/__tests__/__snapshots__/SelectMenu.test.tsx.snap index d67c681a05a..3fd7842da9c 100644 --- a/src/__tests__/__snapshots__/SelectMenu.test.tsx.snap +++ b/src/__tests__/__snapshots__/SelectMenu.test.tsx.snap @@ -23,6 +23,10 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` text-decoration: none; text-align: center; font-size: 14px; + color: #24292f; + background-color: #f6f8fa; + border: 1px solid rgba(31,35,40,0.15); + box-shadow: 0 1px 0 rgba(31,35,40,0.04),inset 0 1px 0 rgba(255,255,255,0.25); } .c1:hover { @@ -42,33 +46,26 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` opacity: 0.6; } -.c2 { - color: #24292f; - background-color: #f6f8fa; - border: 1px solid rgba(31,35,40,0.15); - box-shadow: 0 1px 0 rgba(31,35,40,0.04),inset 0 1px 0 rgba(255,255,255,0.25); -} - -.c2:hover { +.c1:hover { background-color: #f3f4f6; border-color: rgba(31,35,40,0.15); } -.c2:focus { +.c1:focus { outline: solid 2px #0969da; } -.c2:active { +.c1:active { background-color: hsla(220,14%,94%,1); } -.c2:disabled { +.c1:disabled { color: #8c959f; background-color: #f6f8fa; border-color: rgba(31,35,40,0.15); } -.c7 { +.c6 { padding: 4px 16px; margin: 0; font-size: 12px; @@ -78,7 +75,7 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` border-bottom: 1px solid hsla(210,18%,87%,1); } -.c8 { +.c7 { margin-top: -1px; padding: 8px 16px; font-size: 12px; @@ -87,7 +84,7 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` border-top: 1px solid hsla(210,18%,87%,1); } -.c6 { +.c5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -111,20 +108,20 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` width: 100%; } -.c6:hover { +.c5:hover { -webkit-text-decoration: none; text-decoration: none; } -.c6:focus { +.c5:focus { outline: none; } -.c6[hidden] { +.c5[hidden] { display: none !important; } -.c6 .SelectMenu-icon { +.c5 .SelectMenu-icon { width: 16px; margin-right: 8px; -webkit-flex-shrink: 0; @@ -132,7 +129,7 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` flex-shrink: 0; } -.c6 .SelectMenu-selected-icon { +.c5 .SelectMenu-selected-icon { visibility: hidden; -webkit-transition: -webkit-transform 0.12s cubic-bezier(0.5,0.1,1,0.5),visibility 0s 0.12s linear; -webkit-transition: transform 0.12s cubic-bezier(0.5,0.1,1,0.5),visibility 0s 0.12s linear; @@ -142,12 +139,12 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` transform: scale(0); } -.c6[aria-checked='true'] { +.c5[aria-checked='true'] { font-weight: 500; color: #1F2328; } -.c6[aria-checked='true'] .SelectMenu-selected-icon { +.c5[aria-checked='true'] .SelectMenu-selected-icon { visibility: visible; -webkit-transition: -webkit-transform 0.12s cubic-bezier(0,0,0.2,1),visibility 0s linear; -webkit-transition: transform 0.12s cubic-bezier(0,0,0.2,1),visibility 0s linear; @@ -157,7 +154,7 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` transform: scale(1); } -.c5 { +.c4 { position: relative; padding: 0; margin: 0; @@ -170,7 +167,7 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` -webkit-overflow-scrolling: touch; } -.c4 { +.c3 { position: relative; z-index: 99; display: -webkit-box; @@ -187,12 +184,12 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` background-color: #ffffff; border-radius: 6px; box-shadow: 0 1px 0 rgba(31,35,40,0.04); - -webkit-animation: dlgnuT 0.12s cubic-bezier(0,0.1,0.1,1) backwards; - animation: dlgnuT 0.12s cubic-bezier(0,0.1,0.1,1) backwards; + -webkit-animation: lejQAW 0.12s cubic-bezier(0,0.1,0.1,1) backwards; + animation: lejQAW 0.12s cubic-bezier(0,0.1,0.1,1) backwards; width: 300px; } -.c3 { +.c2 { position: fixed; top: 0; right: 0; @@ -210,7 +207,7 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` flex-direction: column; } -.c3::before { +.c2::before { position: absolute; top: 0; right: 0; @@ -234,55 +231,55 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` } @media (min-width:544px) { - .c8 { + .c7 { padding: 4px 8px; } } @media (min-width:544px) { - .c6 { + .c5 { padding-top: 8px; padding-bottom: 8px; } } @media (hover:hover) { - .c6:hover, - .c6:active, - .c6:focus { + .c5:hover, + .c5:active, + .c5:focus { background-color: rgba(234,238,242,0.5); } } @media (hover:none) { - .c6 { + .c5 { -webkit-tap-highlight-color: rgba(175,184,193,0.5); } - .c6:focus, - .c6:active { + .c5:focus, + .c5:active { background-color: #f6f8fa; } } @media (hover:hover) { - .c5 .SelectMenuTab:focus { + .c4 .SelectMenuTab:focus { background-color: #b6e3ff; } - .c5 .SelectMenuTab:not([aria-checked='true']):hover { + .c4 .SelectMenuTab:not([aria-checked='true']):hover { color: #1F2328; background-color: #f6f8fa; } - .c5 .SelectMenuTab:not([aria-checked='true']):active { + .c4 .SelectMenuTab:not([aria-checked='true']):active { color: #1F2328; background-color: #f6f8fa; } } @media (min-width:544px) { - .c4 { + .c3 { height: auto; max-height: 350px; margin: 4px 0 16px 0; @@ -294,13 +291,13 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` } @media (min-width:544px) { - .c3::before { + .c2::before { display: none; } } @media (min-width:544px) { - .c3 { + .c2 { position: absolute; top: auto; right: 0; @@ -316,25 +313,25 @@ exports[`SelectMenu right-aligned modal has right: 0px 1`] = ` open={false} > Projects
    stuff
    footer
    diff --git a/src/__tests__/__snapshots__/SideNav.test.tsx.snap b/src/__tests__/__snapshots__/SideNav.test.tsx.snap index d26dbaf999a..d54bec24567 100644 --- a/src/__tests__/__snapshots__/SideNav.test.tsx.snap +++ b/src/__tests__/__snapshots__/SideNav.test.tsx.snap @@ -37,6 +37,88 @@ exports[`SideNav SideNav.Link renders consistently 1`] = ` font-size: 14px; } +.c1 > .c2 { + border-bottom: none; +} + +.c2.variant-normal > .c1 { + color: #1F2328; + padding: 16px; + border: 0; + border-top: 1px solid hsla(210,18%,87%,1); +} + +.c2.variant-normal > .c1:first-child { + border-top: 0; + border-top-right-radius: 6px; + border-top-left-radius: 6px; +} + +.c2.variant-normal > .c1:last-child { + border-bottom-right-radius: 6px; + border-bottom-left-radius: 6px; +} + +.c2.variant-normal > .c1::before { + position: absolute; + top: 0; + bottom: 0; + left: 0; + z-index: 1; + width: 3px; + pointer-events: none; + content: ''; +} + +.c2.variant-normal > .c1:hover { + background-color: rgba(234,238,242,0.5); + -webkit-text-decoration: none; + text-decoration: none; +} + +.c2.variant-normal > .c1:focus { + background-color: rgba(234,238,242,0.5); + -webkit-text-decoration: none; + text-decoration: none; + outline: solid 2px #0969da; + z-index: 1; +} + +.c2.variant-normal > .c1[aria-current='page'], +.c2.variant-normal > .c1[aria-selected='true'] { + background-color: #ffffff; +} + +.c2.variant-normal > .c1[aria-current='page']::before, +.c2.variant-normal > .c1[aria-selected='true']::before { + background-color: #fd8c73; +} + +.c2.variant-lightweight > .c1 { + padding: 4px 0; + color: #0969da; +} + +.c2.variant-lightweight > .c1:hover { + color: #1F2328; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c2.variant-lightweight > .c1:focus { + color: #1F2328; + -webkit-text-decoration: none; + text-decoration: none; + outline: solid 1px #0969da; + z-index: 1; +} + +.c2.variant-lightweight > .c1[aria-current='page'], +.c2.variant-lightweight > .c1[aria-selected='true'] { + color: #1F2328; + font-weight: 500; +} +
    diff --git a/src/__tests__/__snapshots__/TextInput.test.tsx.snap b/src/__tests__/__snapshots__/TextInput.test.tsx.snap index 99b670ceb7d..601bbd7160e 100644 --- a/src/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/src/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -20,6 +20,10 @@ exports[`TextInput renders 1`] = ` -ms-flex-align: stretch; align-items: stretch; min-height: 32px; + background-repeat: no-repeat; + background-position: right 8px center; + padding-left: 0; + padding-right: 0; } .c0 input, @@ -57,19 +61,12 @@ exports[`TextInput renders 1`] = ` padding: 12px; } -.c1 { - background-repeat: no-repeat; - background-position: right 8px center; - padding-left: 0; - padding-right: 0; -} - -.c1 > :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -79,13 +76,13 @@ exports[`TextInput renders 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -95,7 +92,7 @@ exports[`TextInput renders 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -107,11 +104,11 @@ exports[`TextInput renders 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -208,13 +202,13 @@ exports[`TextInput renders block 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -224,7 +218,7 @@ exports[`TextInput renders block 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -236,11 +230,11 @@ exports[`TextInput renders block 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -329,13 +320,13 @@ exports[`TextInput renders consistently 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -345,7 +336,7 @@ exports[`TextInput renders consistently 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -357,11 +348,11 @@ exports[`TextInput renders consistently 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -450,13 +438,13 @@ exports[`TextInput renders contrast 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -466,7 +454,7 @@ exports[`TextInput renders contrast 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -478,11 +466,11 @@ exports[`TextInput renders contrast 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -578,13 +563,13 @@ exports[`TextInput renders error 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -594,7 +579,7 @@ exports[`TextInput renders error 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -606,11 +591,11 @@ exports[`TextInput renders error 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -705,13 +687,13 @@ exports[`TextInput renders large 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -721,7 +703,7 @@ exports[`TextInput renders large 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -733,12 +715,12 @@ exports[`TextInput renders large 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -827,13 +806,13 @@ exports[`TextInput renders leadingVisual 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 0; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -843,7 +822,7 @@ exports[`TextInput renders leadingVisual 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -855,7 +834,7 @@ exports[`TextInput renders leadingVisual 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -975,13 +951,13 @@ exports[`TextInput renders leadingVisual 2`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 0; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -991,7 +967,7 @@ exports[`TextInput renders leadingVisual 2`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -1003,7 +979,7 @@ exports[`TextInput renders leadingVisual 2`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -1123,13 +1096,13 @@ exports[`TextInput renders leadingVisual 3`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 0; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -1139,7 +1112,7 @@ exports[`TextInput renders leadingVisual 3`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -1151,7 +1124,7 @@ exports[`TextInput renders leadingVisual 3`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -1252,13 +1222,13 @@ exports[`TextInput renders leadingVisual 4`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 0; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -1268,7 +1238,7 @@ exports[`TextInput renders leadingVisual 4`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -1280,7 +1250,7 @@ exports[`TextInput renders leadingVisual 4`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -1382,13 +1349,13 @@ exports[`TextInput renders monospace 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -1398,7 +1365,7 @@ exports[`TextInput renders monospace 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -1410,11 +1377,11 @@ exports[`TextInput renders monospace 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -1503,13 +1467,13 @@ exports[`TextInput renders placeholder 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -1519,7 +1483,7 @@ exports[`TextInput renders placeholder 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -1531,11 +1495,11 @@ exports[`TextInput renders placeholder 1`] = ` :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -1633,13 +1594,13 @@ exports[`TextInput renders small 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 12px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -1649,7 +1610,7 @@ exports[`TextInput renders small 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @@ -1661,12 +1622,12 @@ exports[`TextInput renders small 1`] = ` :not(:last-child) { +.c4[data-size="small"] [data-component="buttonContent"] > :not(:last-child) { margin-right: 4px; } -.c5[data-size="small"][data-component=IconButton] { +.c4[data-size="small"][data-component=IconButton] { width: 28px; padding: unset; } -.c5[data-size="large"] { +.c4[data-size="large"] { padding: 0 16px; height: 40px; gap: 8px; } -.c5[data-size="large"] [data-component="buttonContent"] > :not(:last-child) { +.c4[data-size="large"] [data-component="buttonContent"] > :not(:last-child) { margin-right: 8px; } -.c5[data-size="large"][data-component=IconButton] { +.c4[data-size="large"][data-component=IconButton] { width: 40px; padding: unset; } -.c5[data-block="block"] { +.c4[data-block="block"] { width: 100%; } -.c5 [data-component="leadingVisual"] { +.c4 [data-component="leadingVisual"] { grid-area: leadingVisual; color: #656d76; } -.c5 [data-component="text"] { +.c4 [data-component="text"] { grid-area: text; line-height: calc(20/14); white-space: nowrap; @@ -1851,16 +1813,16 @@ exports[`TextInput renders trailingAction icon button 1`] = ` align-items: center; } -.c5 [data-component="trailingVisual"] { +.c4 [data-component="trailingVisual"] { grid-area: trailingVisual; } -.c5 [data-component="trailingAction"] { +.c4 [data-component="trailingAction"] { margin-right: -4px; color: #656d76; } -.c5 [data-component="buttonContent"] { +.c4 [data-component="buttonContent"] { -webkit-flex: 1 0 auto; -ms-flex: 1 0 auto; flex: 1 0 auto; @@ -1876,43 +1838,43 @@ exports[`TextInput renders trailingAction icon button 1`] = ` align-content: center; } -.c5 [data-component="buttonContent"] > :not(:last-child) { +.c4 [data-component="buttonContent"] > :not(:last-child) { margin-right: 8px; } -.c5:hover:not([disabled]) { +.c4:hover:not([disabled]) { background-color: #f3f4f6; } -.c5:active:not([disabled]) { +.c4:active:not([disabled]) { background-color: hsla(220,14%,94%,1); } -.c5[aria-expanded=true] { +.c4[aria-expanded=true] { background-color: hsla(220,14%,94%,1); } -.c5[data-component="IconButton"][data-no-visuals] { +.c4[data-component="IconButton"][data-no-visuals] { color: #656d76; } -.c5[data-no-visuals] { +.c4[data-no-visuals] { color: #0969da; } -.c5:has([data-component="ButtonCounter"]) { +.c4:has([data-component="ButtonCounter"]) { color: #0969da; } -.c5:disabled[data-no-visuals] { +.c4:disabled[data-no-visuals] { color: #8c959f; } -.c5:disabled[data-no-visuals] [data-component=ButtonCounter] { +.c4:disabled[data-no-visuals] [data-component=ButtonCounter] { color: inherit; } -.c5[data-size="small"][data-no-visuals="true"] { +.c4[data-size="small"][data-no-visuals="true"] { padding-top: 2px; padding-right: 4px; padding-bottom: 2px; @@ -1920,7 +1882,7 @@ exports[`TextInput renders trailingAction icon button 1`] = ` position: relative; } -.c5[data-size="small"][data-no-visuals="true"][data-component="IconButton"] { +.c4[data-size="small"][data-no-visuals="true"][data-component="IconButton"] { width: var(--inner-action-size); height: var(--inner-action-size); } @@ -1944,6 +1906,10 @@ exports[`TextInput renders trailingAction icon button 1`] = ` -ms-flex-align: stretch; align-items: stretch; min-height: 32px; + background-repeat: no-repeat; + background-position: right 8px center; + padding-left: 0; + padding-right: 0; } .c0 input, @@ -1975,19 +1941,12 @@ exports[`TextInput renders trailingAction icon button 1`] = ` padding: 12px; } -.c1 { - background-repeat: no-repeat; - background-position: right 8px center; - padding-left: 0; - padding-right: 0; -} - -.c1 > :not(:last-child) { +.c0 > :not(:last-child) { margin-right: 8px; } -.c1 .TextInput-icon, -.c1 .TextInput-action { +.c0 .TextInput-icon, +.c0 .TextInput-action { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; @@ -1997,18 +1956,18 @@ exports[`TextInput renders trailingAction icon button 1`] = ` flex-shrink: 0; } -.c1 > input, -.c1 > select { +.c0 > input, +.c0 > select { padding-left: 12px; padding-right: 0; } -.c4 { +.c3 { position: relative; display: inline-block; } -.c4::before { +.c3::before { position: absolute; z-index: 1000001; display: none; @@ -2021,7 +1980,7 @@ exports[`TextInput renders trailingAction icon button 1`] = ` opacity: 0; } -.c4::after { +.c3::after { position: absolute; z-index: 1000000; display: none; @@ -2047,14 +2006,14 @@ exports[`TextInput renders trailingAction icon button 1`] = ` opacity: 0; } -.c4:hover::before, -.c4:active::before, -.c4:focus::before, -.c4:focus-within::before, -.c4:hover::after, -.c4:active::after, -.c4:focus::after, -.c4:focus-within::after { +.c3:hover::before, +.c3:active::before, +.c3:focus::before, +.c3:focus-within::before, +.c3:hover::after, +.c3:active::after, +.c3:focus::after, +.c3:focus-within::after { display: inline-block; -webkit-text-decoration: none; text-decoration: none; @@ -2070,36 +2029,36 @@ exports[`TextInput renders trailingAction icon button 1`] = ` animation-delay: 0.4s; } -.c4.tooltipped-no-delay:hover::before, -.c4.tooltipped-no-delay:active::before, -.c4.tooltipped-no-delay:focus::before, -.c4.tooltipped-no-delay:focus-within::before, -.c4.tooltipped-no-delay:hover::after, -.c4.tooltipped-no-delay:active::after, -.c4.tooltipped-no-delay:focus::after, -.c4.tooltipped-no-delay:focus-within::after { +.c3.tooltipped-no-delay:hover::before, +.c3.tooltipped-no-delay:active::before, +.c3.tooltipped-no-delay:focus::before, +.c3.tooltipped-no-delay:focus-within::before, +.c3.tooltipped-no-delay:hover::after, +.c3.tooltipped-no-delay:active::after, +.c3.tooltipped-no-delay:focus::after, +.c3.tooltipped-no-delay:focus-within::after { -webkit-animation-delay: 0s; animation-delay: 0s; } -.c4.tooltipped-multiline:hover::after, -.c4.tooltipped-multiline:active::after, -.c4.tooltipped-multiline:focus::after, -.c4.tooltipped-multiline:focus-within::after { +.c3.tooltipped-multiline:hover::after, +.c3.tooltipped-multiline:active::after, +.c3.tooltipped-multiline:focus::after, +.c3.tooltipped-multiline:focus-within::after { display: table-cell; } -.c4.tooltipped-s::after, -.c4.tooltipped-se::after, -.c4.tooltipped-sw::after { +.c3.tooltipped-s::after, +.c3.tooltipped-se::after, +.c3.tooltipped-sw::after { top: 100%; right: 50%; margin-top: 6px; } -.c4.tooltipped-s::before, -.c4.tooltipped-se::before, -.c4.tooltipped-sw::before { +.c3.tooltipped-s::before, +.c3.tooltipped-se::before, +.c3.tooltipped-sw::before { top: auto; right: 50%; bottom: -7px; @@ -2107,27 +2066,27 @@ exports[`TextInput renders trailingAction icon button 1`] = ` border-bottom-color: #24292f; } -.c4.tooltipped-se::after { +.c3.tooltipped-se::after { right: auto; left: 50%; margin-left: -16px; } -.c4.tooltipped-sw::after { +.c3.tooltipped-sw::after { margin-right: -16px; } -.c4.tooltipped-n::after, -.c4.tooltipped-ne::after, -.c4.tooltipped-nw::after { +.c3.tooltipped-n::after, +.c3.tooltipped-ne::after, +.c3.tooltipped-nw::after { right: 50%; bottom: 100%; margin-bottom: 6px; } -.c4.tooltipped-n::before, -.c4.tooltipped-ne::before, -.c4.tooltipped-nw::before { +.c3.tooltipped-n::before, +.c3.tooltipped-ne::before, +.c3.tooltipped-nw::before { top: -7px; right: 50%; bottom: auto; @@ -2135,24 +2094,24 @@ exports[`TextInput renders trailingAction icon button 1`] = ` border-top-color: #24292f; } -.c4.tooltipped-ne::after { +.c3.tooltipped-ne::after { right: auto; left: 50%; margin-left: -16px; } -.c4.tooltipped-nw::after { +.c3.tooltipped-nw::after { margin-right: -16px; } -.c4.tooltipped-s::after, -.c4.tooltipped-n::after { +.c3.tooltipped-s::after, +.c3.tooltipped-n::after { -webkit-transform: translateX(50%); -ms-transform: translateX(50%); transform: translateX(50%); } -.c4.tooltipped-w::after { +.c3.tooltipped-w::after { right: 100%; bottom: 50%; margin-right: 6px; @@ -2161,7 +2120,7 @@ exports[`TextInput renders trailingAction icon button 1`] = ` transform: translateY(50%); } -.c4.tooltipped-w::before { +.c3.tooltipped-w::before { top: 50%; bottom: 50%; left: -7px; @@ -2169,7 +2128,7 @@ exports[`TextInput renders trailingAction icon button 1`] = ` border-left-color: #24292f; } -.c4.tooltipped-e::after { +.c3.tooltipped-e::after { bottom: 50%; left: 100%; margin-left: 6px; @@ -2178,7 +2137,7 @@ exports[`TextInput renders trailingAction icon button 1`] = ` transform: translateY(50%); } -.c4.tooltipped-e::before { +.c3.tooltipped-e::before { top: 50%; right: -7px; bottom: 50%; @@ -2186,7 +2145,7 @@ exports[`TextInput renders trailingAction icon button 1`] = ` border-right-color: #24292f; } -.c4.tooltipped-multiline::after { +.c3.tooltipped-multiline::after { width: -webkit-max-content; width: -moz-max-content; width: max-content; @@ -2196,8 +2155,8 @@ exports[`TextInput renders trailingAction icon button 1`] = ` border-collapse: separate; } -.c4.tooltipped-multiline.tooltipped-s::after, -.c4.tooltipped-multiline.tooltipped-n::after { +.c3.tooltipped-multiline.tooltipped-s::after, +.c3.tooltipped-multiline.tooltipped-n::after { right: auto; left: 50%; -webkit-transform: translateX(-50%); @@ -2205,30 +2164,30 @@ exports[`TextInput renders trailingAction icon button 1`] = ` transform: translateX(-50%); } -.c4.tooltipped-multiline.tooltipped-w::after, -.c4.tooltipped-multiline.tooltipped-e::after { +.c3.tooltipped-multiline.tooltipped-w::after, +.c3.tooltipped-multiline.tooltipped-e::after { right: 100%; } -.c4.tooltipped-align-right-2::after { +.c3.tooltipped-align-right-2::after { right: 0; margin-right: 0; } -.c4.tooltipped-align-right-2::before { +.c3.tooltipped-align-right-2::before { right: 15px; } -.c4.tooltipped-align-left-2::after { +.c3.tooltipped-align-left-2::after { left: 0; margin-left: 0; } -.c4.tooltipped-align-left-2::before { +.c3.tooltipped-align-left-2::before { left: 10px; } -.c2 { +.c1 { border: 0; font-size: inherit; font-family: inherit; @@ -2238,18 +2197,18 @@ exports[`TextInput renders trailingAction icon button 1`] = ` width: 100%; } -.c2:focus { +.c1:focus { outline: 0; } @media (forced-colors:active) { - .c5:focus { + .c4:focus { outline: solid 1px transparent; } } @media (pointer:coarse) { - .c5[data-size="small"][data-no-visuals="true"]:after { + .c4[data-size="small"][data-no-visuals="true"]:after { content: ""; position: absolute; left: 0; @@ -2270,11 +2229,11 @@ exports[`TextInput renders trailingAction icon button 1`] = `