Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorascharff committed Sep 9, 2024
1 parent b41fd6f commit 1d9e716
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/css/src/tile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See [Storybook](https://miljodir.github.io/md-components) for examples and more
## Tile horizontal

```html
<a className="md-tile [md-tile--secondary, md-tile--fullWidth]" href="{href}" onClick="{handleClick}">
<a className="md-tile [md-tile--secondary]" href="{href}" onClick="{handleClick}">
<div className="md-tile__content">
<div className="md-tile__content-icon">{icon}</div>
<div className="md-tile__content-text">
Expand Down
9 changes: 2 additions & 7 deletions packages/css/src/tile/tile.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@
font-family: 'Open sans';
box-sizing: border-box;
gap: 1.5em;
height: 100%;
width: 100%;
text-align: start;
min-width: 340px;
width: 440px;
max-width: 100%;
transition: all 0.15s ease-in-out;
}

.md-tile:not(.md-tile--fullWidth) {
max-width: 440px;
}

.md-tile--secondary {
background-color: var(--mdSecondaryColor40);
}
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/tiles/MdTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export type MdTileProps = {
href?: string;
theme?: string;
disabled?: boolean;
fullWidth?: boolean;
icon?: React.ReactNode;
preventDefault?: boolean;
onClick?(_e: React.MouseEvent): void;
Expand All @@ -22,7 +21,6 @@ const MdTile: React.FC<MdTileProps> = ({
theme,
disabled = false,
icon = null,
fullWidth = false,
preventDefault = false,
onClick,
...otherProps
Expand All @@ -32,7 +30,6 @@ const MdTile: React.FC<MdTileProps> = ({
{
'md-tile--disabled': !!disabled,
'md-tile--secondary': theme && theme === 'secondary',
'md-tile--fullWidth': fullWidth,
},
otherProps.className,
);
Expand Down

0 comments on commit 1d9e716

Please sign in to comment.