From 3589ef9e3830b5bed065004739fc40bec7eee52a Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 1 Apr 2024 15:55:29 +0300 Subject: [PATCH] Add scoped tokens doc --- .../themes/primeone/base/inputswitch/index.js | 2 +- .../presets/aura/inputswitch/index.js | 3 + doc/theming/styled/ScopedCSSDoc.vue | 86 ---------------- doc/theming/styled/ScopedTokensDoc.vue | 97 +++++++++++++++++++ pages/theming/styled/index.vue | 14 +-- 5 files changed, 108 insertions(+), 94 deletions(-) delete mode 100644 doc/theming/styled/ScopedCSSDoc.vue create mode 100644 doc/theming/styled/ScopedTokensDoc.vue diff --git a/components/lib/themes/primeone/base/inputswitch/index.js b/components/lib/themes/primeone/base/inputswitch/index.js index cc2c2cf60..37b26e6cc 100644 --- a/components/lib/themes/primeone/base/inputswitch/index.js +++ b/components/lib/themes/primeone/base/inputswitch/index.js @@ -45,7 +45,7 @@ export default { height: 1rem; left: 0.25rem; margin-top: -0.5rem; - border-radius: 50%; + border-radius: ${dt('inputswitch.handle.border.radius')}; transition: all ${dt('transition.duration')}; } diff --git a/components/lib/themes/primeone/presets/aura/inputswitch/index.js b/components/lib/themes/primeone/presets/aura/inputswitch/index.js index 9d4e5caa6..df66c5266 100644 --- a/components/lib/themes/primeone/presets/aura/inputswitch/index.js +++ b/components/lib/themes/primeone/presets/aura/inputswitch/index.js @@ -1,4 +1,7 @@ export default { + handle: { + borderRadius: '50%' + }, colorScheme: { light: { root: { diff --git a/doc/theming/styled/ScopedCSSDoc.vue b/doc/theming/styled/ScopedCSSDoc.vue deleted file mode 100644 index eb6fb098d..000000000 --- a/doc/theming/styled/ScopedCSSDoc.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - - - diff --git a/doc/theming/styled/ScopedTokensDoc.vue b/doc/theming/styled/ScopedTokensDoc.vue new file mode 100644 index 000000000..6d2bb21e1 --- /dev/null +++ b/doc/theming/styled/ScopedTokensDoc.vue @@ -0,0 +1,97 @@ + + + diff --git a/pages/theming/styled/index.vue b/pages/theming/styled/index.vue index 232ba2dce..ae076a498 100755 --- a/pages/theming/styled/index.vue +++ b/pages/theming/styled/index.vue @@ -22,12 +22,12 @@ import ArchitectureDoc from '@/doc/theming/styled/ArchitectureDoc.vue'; import CSSModulesDoc from '@/doc/theming/styled/CSSModulesDoc.vue'; import CaseStyleDoc from '@/doc/theming/styled/CaseStyleDoc.vue'; -import ReservedKeysDoc from '@/doc/theming/styled/ReservedKeysDoc.vue'; import ColorsDoc from '@/doc/theming/styled/ColorsDoc.vue'; import DarkModeToggleDoc from '@/doc/theming/styled/DarkModeToggleDoc.vue'; import PresetsDoc from '@/doc/theming/styled/PresetsDoc.vue'; +import ReservedKeysDoc from '@/doc/theming/styled/ReservedKeysDoc.vue'; import ScaleDoc from '@/doc/theming/styled/ScaleDoc.vue'; -import ScopedCSSDoc from '@/doc/theming/styled/ScopedCSSDoc.vue'; +import ScopedTokensDoc from '@/doc/theming/styled/ScopedTokensDoc.vue'; import OptionsDoc from '@/doc/theming/styled/configuration/OptionsDoc.vue'; import ThemeDoc from '@/doc/theming/styled/configuration/ThemeDoc.vue'; import LibrariesDoc from '@/doc/theming/styled/csslayer/LibrariesDoc.vue'; @@ -135,6 +135,11 @@ export default { } ] }, + { + id: 'scopedtokens', + label: 'Scoped Tokens', + component: ScopedTokensDoc + }, { id: 'utils', label: 'Utils', @@ -208,11 +213,6 @@ export default { } ] }, - { - id: 'scopedcss', - label: 'Scoped CSS', - component: ScopedCSSDoc - }, { id: 'cssmodules', label: 'CSS Modules',