Skip to content

Conversation

@AxyIX
Copy link
Collaborator

@AxyIX AxyIX commented Dec 16, 2025

No description provided.

"md": "0.75rem",
"lg": "1rem",
"xl": "1.5rem",
"rounded": "71.35714285714286rem"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Странное значение для rem. Как будто стоит уточнить у дизайнеров и округлить, это же касается аналогичных значений ниже по файлу

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не думаю, что стоит это округлять. это rem, то есть он будет умножаться на базовый размер шрифта. если я буду округлять эти значения - будет теряться оригинальная размерность элементов, и они будут меньше или больше чем должны.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вопрос не в том, стоит или нет) Вопрос в том почему оно такое и это нормально или нет?😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

потому что 999px(значение из фигма) поделить на 14px(размер 1го rem) = 71.35714285714286rem)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это норма)


import Github from './assets/github.svg';
import Discord from './assets/discord.svg';
import Youtube from './assets/youtube.svg';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мб стоит оставить актуальные?

@@ -40,27 +40,27 @@ export class ButtonBaseComponent {
@Input() icon: string = '';
@Input() iconPos: 'left' | 'right' | null = null;
@Input() badge: string = '';
@Input() severity: 'success' | 'info' | 'warning' | 'primary' | 'help' | 'danger' | null = null;
@Input() severity: 'success' | 'info' | 'warn' | 'primary' | 'help' | 'danger' | null = null;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Использовать нормальную типизацию ?
type ButtonSeverity = Extract<Button['severity'], string | null>;


3. Открыть в браузере по адресу http://localhost:6006

## Разработка story
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить информацию что можно что нельзя делать, ограничения. Что бы не возникало претензий и вопросов что об этом не говорилось. В частности о правилах доработки компонентов primeNg

{
"useTabs": false,
"tabWidth": 4,
"tabWidth": 2,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Более строгие правила для провекта, что бы было единообразно в разных IDE

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

какие например?

Copy link

@evvis evvis Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну как минимум
"singleQuote": true, "printWidth": 120,

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

singleQuote уже есть
printWidth изменил

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants