LuccaSA / lucca-front

documentation
https://prisme.lucca.io
MIT License
38 stars 4 forks source link

LF Responsive #2875

Open vvalentin-lucca opened 3 months ago

vvalentin-lucca commented 3 months ago

Description

With this PR, we introduce the possibility of controlling the responsive behavior of each component from outside LF.

You can (for each component independently) :

Each responsive component now has :


A few breakings:

The target behaviors are coded in LF, to avoid breakings (and give you time to switch over smoothly), you will have to configure the responsive components in this way:

@use 'footer' with (
    $defaultResponsive: false
);

@include footer.responsive($at: 'media');

Some examples of use:

// change breakpoint for indexTable
@use 'indexTable' with (
    $defaultResponsive: false
);
@include indexTable.responsive($at: 'media', $breakpoint: 'XS');
// define two levels and trigger outside them for errorPage
@use 'errorPage' with (
    $defaultResponsive: false
);
@include errorPage.responsive($at: 'media', $breakpoint: 'S', $breakpoint2: 'M', $inverted: true);
// create behavior for a specific emptyState
@use 'emptyState' with (
    $defaultResponsive: false
);
@include emptyState.responsive($at: 'media');
@include emptyState.responsive($at: 'media', $breakpoint: '42em', $responsiveSelector: 'at42em'); // generate class .emptyState.rwd-at42em

LuccaIntegration commented 3 months ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 3 months ago

Tests d'interfaces

jeremie-lucca commented 1 month ago

Could we fix the pageHeader responsive padding on this issue ?

https://github.com/LuccaSA/lucca-front/blob/b257decf2fff62ce723e5991b0b42b12cdc3cfa7/packages/scss/src/components/pageHeader/component.scss#L4

image

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 1 month ago

Tests d'interfaces

vvalentin-lucca commented 1 month ago

@jeremie-lucca Done.

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 1 month ago

Tests d'interfaces

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 1 month ago

Tests d'interfaces

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 1 month ago

Tests d'interfaces

CCNET-iLucca commented 1 month ago

Tests d'interfaces

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 1 month ago

Tests d'interfaces

LuccaIntegration commented 1 month ago

:woman_cook: https://lucca-front.lucca.tech/PR-2875/storybook

CCNET-iLucca commented 1 month ago

Tests d'interfaces