Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Button] Apply correct line height to Button text #44907

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/badge.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "Badge",
"forwardsRefTo": "HTMLSpanElement",
"filename": "/packages/mui-base/src/Badge/Badge.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-badge/\">Badge</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Button",
"forwardsRefTo": "HTMLButtonElement",
"filename": "/packages/mui-base/src/Button/Button.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-button/\">Button</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/click-away-listener.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"import { ClickAwayListener } from '@mui/base';"
],
"classes": [],
"spread": false,
"themeDefaultProps": null,
"muiName": "ClickAwayListener",
"filename": "/packages/mui-base/src/ClickAwayListener/ClickAwayListener.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/css-animation.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"import { CssAnimation } from '@mui/base';"
],
"classes": [],
"spread": true,
"themeDefaultProps": null,
"muiName": "CssAnimation",
"filename": "/packages/mui-base/src/Transitions/CssAnimation.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/css-transition.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"import { CssTransition } from '@mui/base';"
],
"classes": [],
"spread": true,
"themeDefaultProps": null,
"muiName": "CssTransition",
"filename": "/packages/mui-base/src/Transitions/CssTransition.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/dropdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"import { Dropdown } from '@mui/base';"
],
"classes": [],
"spread": false,
"themeDefaultProps": null,
"muiName": "Dropdown",
"filename": "/packages/mui-base/src/Dropdown/Dropdown.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/focus-trap.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"import { FocusTrap } from '@mui/base';"
],
"classes": [],
"spread": false,
"themeDefaultProps": null,
"muiName": "FocusTrap",
"filename": "/packages/mui-base/src/FocusTrap/FocusTrap.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/form-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "FormControl",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/FormControl/FormControl.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-form-control/\">Form Control</a></li>\n<li><a href=\"/joy-ui/react-input/\">Input</a></li>\n<li><a href=\"/material-ui/react-checkbox/\">Checkbox</a></li>\n<li><a href=\"/material-ui/react-radio-button/\">Radio Group</a></li>\n<li><a href=\"/material-ui/react-switch/\">Switch</a></li>\n<li><a href=\"/material-ui/react-text-field/\">Text Field</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "Input",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Input/Input.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-input/\">Input</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/menu-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "MenuButton",
"forwardsRefTo": "HTMLButtonElement",
"filename": "/packages/mui-base/src/MenuButton/MenuButton.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-menu/\">Menu</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/menu-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "MenuItem",
"forwardsRefTo": "HTMLLIElement",
"filename": "/packages/mui-base/src/MenuItem/MenuItem.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-menu/\">Menu</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Menu",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Menu/Menu.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-menu/\">Menu</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "Modal",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Modal/Modal.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-modal/\">Modal</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/no-ssr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"name": "NoSsr",
"imports": ["import { NoSsr } from '@mui/base/NoSsr';", "import { NoSsr } from '@mui/base';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
"muiName": "NoSsr",
"filename": "/packages/mui-base/src/NoSsr/NoSsr.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/number-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "NumberInput",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Unstable_NumberInput/NumberInput.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-number-input/\">Number Input</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/option-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "OptionGroup",
"forwardsRefTo": "HTMLLIElement",
"filename": "/packages/mui-base/src/OptionGroup/OptionGroup.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-select/\">Select</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/option.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Option",
"forwardsRefTo": "HTMLLIElement",
"filename": "/packages/mui-base/src/Option/Option.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-select/\">Select</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/popper.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "Popper",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Popper/Popper.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-popper/\">Popper</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/popup.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Popup",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Unstable_Popup/Popup.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-popup/\">Popup</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"name": "Portal",
"imports": ["import { Portal } from '@mui/base/Portal';", "import { Portal } from '@mui/base';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
"muiName": "Portal",
"filename": "/packages/mui-base/src/Portal/Portal.tsx",
"inheritance": null,
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/select.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Select",
"forwardsRefTo": "HTMLButtonElement",
"filename": "/packages/mui-base/src/Select/Select.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-select/\">Select</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/slider.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "Slider",
"forwardsRefTo": "HTMLSpanElement",
"filename": "/packages/mui-base/src/Slider/Slider.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-slider/\">Slider</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/snackbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
}
],
"classes": [],
"spread": true,
"muiName": "Snackbar",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Snackbar/Snackbar.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-snackbar/\">Snackbar</a></li>\n<li><a href=\"/joy-ui/react-snackbar/\">Snackbar</a></li>\n<li><a href=\"/material-ui/react-snackbar/\">Snackbar</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Switch",
"forwardsRefTo": "HTMLSpanElement",
"filename": "/packages/mui-base/src/Switch/Switch.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-switch/\">Switch</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/tab-panel.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "TabPanel",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/TabPanel/TabPanel.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-tabs/\">Tabs</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"isGlobal": true
}
],
"spread": true,
"muiName": "Tab",
"forwardsRefTo": "HTMLButtonElement",
"filename": "/packages/mui-base/src/Tab/Tab.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-tabs/\">Tabs</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/table-pagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "TablePagination",
"forwardsRefTo": "HTMLTableCellElement",
"filename": "/packages/mui-base/src/TablePagination/TablePagination.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-table-pagination/\">Table Pagination</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/tabs-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "TabsList",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/TabsList/TabsList.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-tabs/\">Tabs</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/tabs.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
"isGlobal": false
}
],
"spread": true,
"muiName": "Tabs",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Tabs/Tabs.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-tabs/\">Tabs</a></li></ul>",
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/base-ui/api/textarea-autosize.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"import { TextareaAutosize } from '@mui/base';"
],
"classes": [],
"spread": false,
"muiName": "TextareaAutosize",
"forwardsRefTo": "HTMLTextAreaElement",
"filename": "/packages/mui-base/src/TextareaAutosize/TextareaAutosize.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-textarea-autosize/\">Textarea Autosize</a></li>\n<li><a href=\"/material-ui/react-textarea-autosize/\">Textarea Autosize</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/accordion-details.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@
"isGlobal": true
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAccordionDetails",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-accordion/\">Accordion</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/accordion-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAccordionGroup",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-accordion/\">Accordion</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/accordion-summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@
"isGlobal": true
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAccordionSummary",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-accordion/\">Accordion</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/accordion.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@
"isGlobal": true
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAccordion",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/Accordion/Accordion.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-accordion/\">Accordion</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAlert",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/Alert/Alert.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-alert/\">Alert</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/aspect-ratio.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAspectRatio",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/AspectRatio/AspectRatio.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-aspect-ratio/\">Aspect Ratio</a></li>\n<li><a href=\"/joy-ui/react-skeleton/\">Skeleton</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/autocomplete-listbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAutocompleteListbox",
"forwardsRefTo": "HTMLUListElement",
"filename": "/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-autocomplete/\">Autocomplete</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/autocomplete-option.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAutocompleteOption",
"forwardsRefTo": "HTMLLIElement",
"filename": "/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-autocomplete/\">Autocomplete</a></li></ul>",
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/joy-ui/api/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,7 @@
"isGlobal": false
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "JoyAutocomplete",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-joy/src/Autocomplete/Autocomplete.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/joy-ui/react-autocomplete/\">Autocomplete</a></li></ul>",
Expand Down
Loading
Loading