-
Notifications
You must be signed in to change notification settings - Fork 23
PLASMA-5195: Add h6 component
#2403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
neretin-trike
wants to merge
16
commits into
dev
Choose a base branch
from
PLASMA-5195
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
214c0ea to
f53a58e
Compare
Contributor
|
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-2403/ |
Contributor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Core
Typography
h6What/why changed
Какие были выявлены проблемы:
вместо вызова функицииcy.viewport(375, 667);`. На тесты это никак не повлиялоКуда не были добавлены компоненты:
@salutejs/plasma-typo - Т.к. это легаси библиотека, которая больше не поддерживается
@salutejs/plasma-ui - Старая библиотека, в которой не поддерживаются новые способы подключения тем
В тесты @salutejs/plasma-web и @salutejs/plasma-b2c, т.к. там используется старый способ подключения типографики
Что нужно будет сделать:
theme-converterво все библиотеки и обновить zip архивы с поднятием версии на мажор, поскольку это изменение затронет большое количество компонент и очень сильно повлияет на визуальный регресс.Изменения которые нужно внести при добавлении "типографического" компонента в ядро
Файл: packages/plasma-new-hope/src/mixins/typography.ts
Использовать соответствующие CSS‑переменные --plasma-typo-<component_name>-*.
Файл: utils/plasma-sb-utils/src/helpers/typographyTokens.ts
Добавить новый компонент в типы
Файл: packages/plasma-new-hope/src/components/Typography/Typography.template-doc.mdx
Минимальный набор изменений, чтобы "типографический" компонент появился и работал в конечных библиотеках:
Файл: packages/*/src/components/Typography/<component_name>.config.ts
Два варианта:
Вариант A: один общий config
Вариант B: отдельный
config<component_name>Файл: packages/*/src/components/Typography/Typography.tsx
Файл: packages/*/src/components/Typography/index.ts
Файл: packages/*/src/components/Typography/Typography.stories.tsx
Файл: packages/*/src/components/Typography/Typography.Responsive.component-test.tsx
... const H5 = getComponent('H5'); const <component_name> = getComponent('<component_name>'); const TextL = getComponent('TextL'); ...Добавить токены в соотвествующие библиотеки
Поискать смежные компоненты, которые переиспользуют типографику и добавить её туда (например в Rating, Tab и т.д.)
📦 Published PR as canary version:
Canary Versions✨ Test out this PR locally via:
npm install @salutejs/plasma-asdk@0.358.0-canary.2403.20455152253.0 npm install @salutejs/plasma-b2c@1.600.0-canary.2403.20455152253.0 npm install @salutejs/plasma-core@1.212.0-canary.2403.20455152253.0 npm install @salutejs/plasma-giga@0.327.0-canary.2403.20455152253.0 npm install @salutejs/plasma-hope@1.358.0-canary.2403.20455152253.0 npm install @salutejs/plasma-new-hope@0.344.0-canary.2403.20455152253.0 npm install @salutejs/plasma-tokens@1.126.0-canary.2403.20455152253.0 npm install @salutejs/plasma-ui@1.334.0-canary.2403.20455152253.0 npm install @salutejs/plasma-web@1.602.0-canary.2403.20455152253.0 npm install @salutejs/sdds-bizcom@0.332.0-canary.2403.20455152253.0 npm install @salutejs/sdds-crm@0.331.0-canary.2403.20455152253.0 npm install @salutejs/sdds-cs@0.336.0-canary.2403.20455152253.0 npm install @salutejs/sdds-dfa@0.330.0-canary.2403.20455152253.0 npm install @salutejs/sdds-finai@0.323.0-canary.2403.20455152253.0 npm install @salutejs/sdds-insol@0.327.0-canary.2403.20455152253.0 npm install @salutejs/sdds-netology@0.331.0-canary.2403.20455152253.0 npm install @salutejs/sdds-platform-ai@0.331.0-canary.2403.20455152253.0 npm install @salutejs/sdds-scan@0.330.0-canary.2403.20455152253.0 npm install @salutejs/sdds-serv@0.331.0-canary.2403.20455152253.0 npm install @salutejs/sdds-themes@0.51.0-canary.2403.20455152253.0 npm install @salutejs/plasma-cy-utils@0.142.0-canary.2403.20455152253.0 npm install @salutejs/plasma-sb-utils@0.212.0-canary.2403.20455152253.0 # or yarn add @salutejs/plasma-asdk@0.358.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-b2c@1.600.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-core@1.212.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-giga@0.327.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-hope@1.358.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-new-hope@0.344.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-tokens@1.126.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-ui@1.334.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-web@1.602.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-bizcom@0.332.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-crm@0.331.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-cs@0.336.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-dfa@0.330.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-finai@0.323.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-insol@0.327.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-netology@0.331.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-platform-ai@0.331.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-scan@0.330.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-serv@0.331.0-canary.2403.20455152253.0 yarn add @salutejs/sdds-themes@0.51.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-cy-utils@0.142.0-canary.2403.20455152253.0 yarn add @salutejs/plasma-sb-utils@0.212.0-canary.2403.20455152253.0