Skip to content

Commit

Permalink
Merge pull request #1130 from Bedrock-Layouts/feature/frame
Browse files Browse the repository at this point in the history
feat(frame): allow ratio string in `ratio` prop
  • Loading branch information
Jarvis1010 authored Feb 16, 2022
2 parents 45733c7 + 97b2fca commit 89a528b
Show file tree
Hide file tree
Showing 9 changed files with 303 additions and 85 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: false
9 changes: 5 additions & 4 deletions packages/frame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ For styling purposes, you can select `data-bedrock-frame`.

## API

| Property | Description | Type | Default |
| :------: | :---------------------------------------------------------------------------------------------------------------------------: | :----------------: | :---------------: |
| ratio | Aspect ratio that you want the child element to maintain | `[number, number]` | medium breakpoint |
| position | Alignment of the child element. Use [object-position value](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) | string | `50%` |
| Property | Description | Type | Default |
| :------: | :---------------------------------------------------------------------------------------------------------------------------: | :---------------: | :-------------------: | ----------------- |
| ratio | Aspect ratio that you want the child element to maintain | `[number, number] | ${number}/${number}` | medium breakpoint |
| position | Alignment of the child element. Use [object-position value](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) | string | `50%` |
Loading

0 comments on commit 89a528b

Please sign in to comment.