Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

[FRNT-506] Rewrite list #108

Merged
merged 1 commit into from
May 7, 2021
Merged

[FRNT-506] Rewrite list #108

merged 1 commit into from
May 7, 2021

Conversation

tatinacher
Copy link
Member

Separate list container and list item

  • FRNT-506

@github-actions github-actions bot added @atoms Changes inside atoms @molecules labels May 4, 2021
@@ -1,13 +1,36 @@
---
name: list
name: list-new
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: list-new
name: list-container

Copy link
Member

Choose a reason for hiding this comment

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

Из этого названия генерируются импорты

@tatinacher tatinacher force-pushed the fix/FRNT-506-rewrite-list branch 2 times, most recently from 1036c82 to ed7f2b0 Compare May 5, 2021 15:36

cursor: pointer;
outline: none;
interface ElementsProps {
Copy link
Contributor

Choose a reason for hiding this comment

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

мб лучше назвать ListElementsProps? просто ElementsProps ничего не говорит

interface ElementsProps {
iconLeft?: React.ReactNode;
iconRight?: React.ReactNode;
text: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

а тут всегда будет только текст? здесь нельзя передавать компонент?

display: grid;
grid-template-columns: 1fr;
gap: var(--local-gap);
background-color: var(--woly-canvas);
Copy link
Contributor

Choose a reason for hiding this comment

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

а что это за цвет такой? мб я не увидела, но вроде он не объявлен здесь и в палитре его нет

font-size: var(--woly-font-size);
line-height: var(--woly-line-height);
text-decoration: none;
color: var(--woly-canvas-text-default);
Copy link
Contributor

Choose a reason for hiding this comment

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

мб лучше было бы объявить в локальной переменной? этот цвет разве не будет меняться?

Copy link
Contributor

Choose a reason for hiding this comment

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

он на 78 строчке в состоянии disabled становится другим

}
}
&:hover {
background-color: var(--woly-canvas-disabled);
Copy link
Contributor

Choose a reason for hiding this comment

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

а изначально у контейнера вообще нет bg? мб он transparent?

@@ -7,8 +7,8 @@ const map = (properties: Variant) => ({

export const Surface = styled.div.attrs(map)`
padding: var(--woly-padding, 0);
background-color: var(--woly-canvas, #ffffff);
border-color: var(--woly-border, #000000);
background-color: var(--woly-canvas);
Copy link
Contributor

Choose a reason for hiding this comment

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

такого цвета нет в палитре

@sergeysova sergeysova merged commit 8dc18dd into master May 7, 2021
@sergeysova sergeysova deleted the fix/FRNT-506-rewrite-list branch May 7, 2021 12:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@atoms Changes inside atoms @molecules
Projects
None yet
3 participants