Skip to content
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

feat!: yfm instead of html #993

Merged
merged 20 commits into from
Dec 23, 2024
Merged

feat!: yfm instead of html #993

merged 20 commits into from
Dec 23, 2024

Conversation

niktverd
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@niktverd niktverd changed the title feat: yfm instead of html feat: yfm instead of html [WIP] Aug 27, 2024
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@niktverd niktverd changed the title feat: yfm instead of html [WIP] feat: yfm instead of html Sep 24, 2024
@niktverd niktverd changed the base branch from main to next September 25, 2024 09:00
@niktverd niktverd changed the title feat: yfm instead of html feat!: yfm instead of html Sep 25, 2024
.storybook/utils.ts Show resolved Hide resolved
src/sub-blocks/PriceCard/PriceCard.scss Show resolved Hide resolved
src/sub-blocks/BannerCard/BannerCard.scss Outdated Show resolved Hide resolved
export interface HTMLProps {
children?: string;
export interface HTMLExtraProps {
variant?: 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'section' | 'p';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

enum is good if value is unknown, or difficult to write. When value is simple and well-known it is better to use simple type as I do.

export interface HTMLProps {
children?: string;
export interface HTMLExtraProps {
variant?: 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'section' | 'p';
Copy link
Collaborator

@NikitaCG NikitaCG Oct 30, 2024

Choose a reason for hiding this comment

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

and I think we need more informative name for this props , maybe tagVariant or tagType

because I have a question - a variant of what?))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed it to tagName

@niktverd niktverd force-pushed the yfm_instead_of_html branch from f155278 to 2390740 Compare December 20, 2024 13:23
@include heading4();
@include focusable();
@include add-specificity(&) {
// @include reset-button-style();
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete if we dont need it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

forgot to push changes (( Sorry

@niktverd niktverd merged commit 67f4529 into next Dec 23, 2024
2 checks passed
@niktverd niktverd deleted the yfm_instead_of_html branch December 23, 2024 11:37
niktverd added a commit that referenced this pull request Dec 23, 2024
niktverd added a commit that referenced this pull request Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants