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

Fixed site documentation layout #2381

Closed
wants to merge 7 commits into from
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/website/src/components/LiveExample.astro
mayank99 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const cssCode = await (async () => {
<template shadowrootmode='open'>
<style is:inline>
astro-island {
display: block !important; /* https://github.com/iTwin/iTwinUI/pull/2353 */
display: flex !important; /* https://github.com/iTwin/iTwinUI/pull/2381 */
min-inline-size: 0;
inline-size: 100%;
justify-content: center;
align-items: center;
}
</style>
<style set:html={cssCode}></style>
Expand Down
4 changes: 2 additions & 2 deletions examples/ComboBox.label.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default () => {
);

return (
<>
<div>
<InputGrid>
<Label htmlFor='breakfast-input'>Breakfast</Label>
<ComboBox
Expand All @@ -56,6 +56,6 @@ export default () => {
}}
/>
</InputGrid>
</>
</div>
);
};
4 changes: 2 additions & 2 deletions examples/Surface.elevation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Surface } from '@itwin/itwinui-react';

export default () => {
return (
<>
<div>
<div className='demo-container'>
<Surface elevation={0} className='demo-card'>
<p>Elevation 0 (0dp)</p>
Expand All @@ -30,6 +30,6 @@ export default () => {
<p>Elevation 5 (24dp)</p>
</Surface>
</div>
</>
</div>
);
};
Loading