Skip to content

Commit 30bc2e7

Browse files
committed
Readme lupdated and missing styles applied to flex
1 parent 3df3327 commit 30bc2e7

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const App = () => (
3131

3232
## Where to start
3333

34-
Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.dxc.com/halstack/).
34+
Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.assure.dxc.com/halstack).
3535

3636
## Contributing
3737

packages/lib/src/flex/Flex.stories.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ const Placeholder = styled.div<{ minWidth?: string; width?: string }>`
2626

2727
const Flex = () => (
2828
<>
29+
<div style={{ height: "200px", backgroundColor: "#fabada" }}>
30+
<DxcFlex fullHeight justifyContent="center" alignItems="center">
31+
<Placeholder />
32+
</DxcFlex>
33+
</div>
2934
<Title title="Default" level={4} />
3035
<Container>
3136
<DxcFlex>

packages/lib/src/flex/Flex.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const Flex = styled.div<StyledProps>`
99
${typeof props.alignSelf === "string" ? `align-self: ${props.alignSelf};` : ""}
1010
${typeof props.$basis === "string" ? `flex-basis: ${props.$basis};` : ""}
1111
${typeof props.$direction === "string" ? `flex-direction: ${props.$direction};` : ""}
12+
${props.$fullHeight ? "height: 100%;" : ""}
1213
${typeof props.$gap === "string" ? `gap: ${props.$gap};` : ""}
1314
${typeof props.$gap === "object" ? `column-gap: ${props.$gap.columnGap}; row-gap: ${props.$gap.rowGap};` : ""}
1415
${typeof props.$grow === "number" ? `flex-grow: ${props.$grow};` : ""}
@@ -28,6 +29,7 @@ const DxcFlex = ({ basis, direction, fullHeight = false, gap, grow, order, shrin
2829
$order={order}
2930
$shrink={shrink}
3031
$wrap={wrap}
32+
$fullHeight={fullHeight}
3133
{...props}
3234
/>
3335
);

packages/lib/src/flex/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export type StyledProps = CommonProps & {
126126
$wrap?: "nowrap" | "wrap" | "wrap-reverse";
127127
$gap?: CoreSpacingTokensType | Gap;
128128
$order?: number;
129+
$fullHeight?: boolean;
129130
$grow?: number;
130131
$shrink?: number;
131132
$basis?: string;

0 commit comments

Comments
 (0)