Skip to content

Commit

Permalink
[Portal] Improve docs for container prop (#39180)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
  • Loading branch information
oliviertassinari and samuelsycamore committed Nov 27, 2023
1 parent c8138a1 commit 44ffe25
Show file tree
Hide file tree
Showing 226 changed files with 1,190 additions and 1,243 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function Styles() {
<style>
{`
.Autocomplete__root {
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
background: ${isDarkMode ? grey[900] : '#fff'};
Expand Down Expand Up @@ -270,7 +270,7 @@ function Styles() {
}
.Autocomplete__listbox {
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function Styles() {
<style>
{`
.Autocomplete__root {
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
background: ${isDarkMode ? grey[900] : '#fff'};
Expand Down Expand Up @@ -244,7 +244,7 @@ function Styles() {
}
.Autocomplete__listbox {
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const grey = {

const StyledAutocompleteRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -197,7 +197,7 @@ const StyledPopper = styled('div')`

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const grey = {

const StyledAutocompleteRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -180,7 +180,7 @@ const StyledPopper = styled('div')`

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/autocomplete/ControlledStates.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const StyledAutocomplete = styled('div')`

const StyledInputRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -127,7 +127,7 @@ const StyledInput = styled('input')(

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/autocomplete/ControlledStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const StyledAutocomplete = styled('div')`

const StyledInputRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -127,7 +127,7 @@ const StyledInput = styled('input')(

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/autocomplete/UseAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const StyledLabel = styled('label')`

const StyledAutocompleteRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -124,7 +124,7 @@ const StyledInput = styled('input')(

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/autocomplete/UseAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const StyledLabel = styled('label')`

const StyledAutocompleteRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -126,7 +126,7 @@ const StyledInput = styled('input')(

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const grey = {

const StyledAutocompleteRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -144,7 +144,7 @@ const StyledPopper = styled('div')`

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const grey = {

const StyledAutocompleteRoot = styled('div')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
border-radius: 8px;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[500]};
Expand Down Expand Up @@ -152,7 +152,7 @@ const StyledPopper = styled('div')`

const StyledListbox = styled('ul')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
box-sizing: border-box;
padding: 6px;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/badge/AccessibleBadges.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Badge = styled(BaseBadge)(
padding: 0;
font-size: 14px;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand All @@ -69,7 +69,7 @@ const Badge = styled(BaseBadge)(
background: ${blue[500]};
box-shadow: 0px 4px 6x ${theme.palette.mode === 'dark' ? grey[900] : grey[300]};
transform: translate(50%, -50%);
transform-origin: 100% 0;
transform-origin: 100% 0;
}
`,
);
4 changes: 2 additions & 2 deletions docs/data/base/components/badge/AccessibleBadges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Badge = styled(BaseBadge)(
padding: 0;
font-size: 14px;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand All @@ -69,7 +69,7 @@ const Badge = styled(BaseBadge)(
background: ${blue[500]};
box-shadow: 0px 4px 6x ${theme.palette.mode === 'dark' ? grey[900] : grey[300]};
transform: translate(50%, -50%);
transform-origin: 100% 0;
transform-origin: 100% 0;
}
`,
);
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/BadgeMax.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Badge = styled(BaseBadge)(
padding: 0;
font-size: 14px;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/BadgeMax.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Badge = styled(BaseBadge)(
padding: 0;
font-size: 14px;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/badge/BadgeVisibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Badge = styled(BaseBadge)(
margin: 0;
padding: 0;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 14px;
line-height: 1;
Expand Down Expand Up @@ -159,7 +159,7 @@ const Root = styled('span')(

const StyledLabel = styled('label')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
`,
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/components/badge/BadgeVisibility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Badge = styled(BaseBadge)(
margin: 0;
padding: 0;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 14px;
line-height: 1;
Expand Down Expand Up @@ -159,7 +159,7 @@ const Root = styled('span')(

const StyledLabel = styled('label')(
({ theme }) => `
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-size: 0.875rem;
color: ${theme.palette.mode === 'dark' ? grey[300] : grey[900]};
`,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/ShowZeroBadge.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Badge = styled(BaseBadge)(
padding: 0;
font-size: 14px;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/ShowZeroBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Badge = styled(BaseBadge)(
padding: 0;
font-size: 14px;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/badge/UnstyledBadge/css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Styles() {
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Styles() {
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Badge = styled(BaseBadge)(
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Badge = styled(BaseBadge)(
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Styles() {
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Styles() {
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Badge = styled(BaseBadge)(
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Badge = styled(BaseBadge)(
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
display: inline-block;
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/button/UnstyledButtonCustom.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const CustomButtonRoot = styled(ButtonRoot)(
& .content {
font-size: 0.875rem;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 600;
line-height: 1.5;
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/base/components/button/UnstyledButtonCustom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const CustomButtonRoot = styled(ButtonRoot)(
& .content {
font-size: 0.875rem;
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 600;
line-height: 1.5;
height: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Styles() {
return (
<style>{`
.IntroductionButton {
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 600;
font-size: 0.875rem;
line-height: 1.5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Styles() {
return (
<style>{`
.IntroductionButton {
font-family: IBM Plex Sans, sans-serif;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 600;
font-size: 0.875rem;
line-height: 1.5;
Expand Down
Loading

0 comments on commit 44ffe25

Please sign in to comment.