From d9e0f95e5dff9d00132c6717a54e49045ff849b4 Mon Sep 17 00:00:00 2001 From: Giuseppe Gurgone Date: Wed, 25 Oct 2023 23:01:31 +0200 Subject: [PATCH] Add size-text shorthand --- stubs/config.full.js | 1 + tests/plugins/__snapshots__/size.test.js.snap | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/stubs/config.full.js b/stubs/config.full.js index 2f780a277d9c..1a1972278d5d 100644 --- a/stubs/config.full.js +++ b/stubs/config.full.js @@ -1001,6 +1001,7 @@ module.exports = { min: 'min-content', max: 'max-content', fit: 'fit-content', + text: '1em', }), width: ({ theme }) => ({ auto: 'auto', diff --git a/tests/plugins/__snapshots__/size.test.js.snap b/tests/plugins/__snapshots__/size.test.js.snap index 16f954b8dc35..25c9930248ce 100644 --- a/tests/plugins/__snapshots__/size.test.js.snap +++ b/tests/plugins/__snapshots__/size.test.js.snap @@ -343,5 +343,10 @@ exports[`should test the 'size' plugin 1`] = ` width: 1px; height: 1px; } + +.size-text { + width: 1em; + height: 1em; +} " `;