From d1fd2ff75dd9d90331857cc7bf94f503fce52020 Mon Sep 17 00:00:00 2001 From: Rain Date: Sat, 20 Nov 2021 15:15:08 +0000 Subject: [PATCH] use css native start and end --- src/textAlignUtilities.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/textAlignUtilities.js b/src/textAlignUtilities.js index c5ddc42..9c72ef2 100644 --- a/src/textAlignUtilities.js +++ b/src/textAlignUtilities.js @@ -1,8 +1,6 @@ const utilities = () => ({ - '[dir="rtl"] .text-start': { 'text-align': 'right' }, - '[dir="rtl"] .text-end': { 'text-align': 'left' }, - ':not([dir="rtl"]) .text-end': { 'text-align': 'right' }, - ':not([dir="rtl"]) .text-start': { 'text-align': 'left' }, + '.text-start': { 'text-align': 'start' }, + '.text-end': { 'text-align': 'end' }, }); module.exports = utilities;