Skip to content

Commit

Permalink
Add alignSelf to Button (#32561)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravicious committed Sep 26, 2023
1 parent 2aa66ec commit b06452f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/packages/design/src/Button/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import React from 'react';
import styled from 'styled-components';
import { bool, string } from 'prop-types';

import { space, width, height } from 'design/system';
import { space, width, height, alignSelf } from 'design/system';

const Button = ({ children, setRef, ...props }) => {
return (
Expand Down Expand Up @@ -85,6 +85,7 @@ const themedStyles = props => {
...block(props),
...height(props),
...textTransform(props),
...alignSelf(props),
};
};

Expand Down Expand Up @@ -217,6 +218,7 @@ Button.propTypes = {
*/
...space.propTypes,
...height.propTypes,
...alignSelf.propTypes,
};

Button.defaultProps = {
Expand Down

0 comments on commit b06452f

Please sign in to comment.