Skip to content

Commit

Permalink
Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrause committed Feb 26, 2025
1 parent 2f3ae5a commit 4ba6c13
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const preview = {
'layouts',
[
'FormLayout',
'DialogLayout',
'AppLayout',
[
'Logo',
Expand Down
11 changes: 6 additions & 5 deletions app/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export * as DataTableStream from '../src/components/tables/DataTable/DataTableSt
/**
* Layouts
*/
export { AppLayout } from '../src/layouts/AppLayout/AppLayout.tsx';

export { DialogLayout } from '../src/layouts/DialogLayout/DialogLayout.tsx';

export { FormLayout } from '../src/layouts/FormLayout/FormLayout.tsx';

export { Breadcrumbs } from '../src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.tsx';
export { Header } from '../src/layouts/AppLayout/Header/Header.tsx';
export { AccountSelector } from '../src/layouts/AppLayout/Header/AccountSelector.tsx';
Expand All @@ -105,7 +109,4 @@ export { UserMenu } from '../src/layouts/AppLayout/Header/UserMenu.tsx';
export { Logo } from '../src/layouts/AppLayout/Logo/Logo.tsx';
export { Nav } from '../src/layouts/AppLayout/Nav/Nav.tsx';
export { Sidebar } from '../src/layouts/AppLayout/Sidebar/Sidebar.tsx';

export { DialogLayout } from '../src/layouts/DialogLayout/DialogLayout.tsx';

export { FormLayout } from '../src/layouts/FormLayout/FormLayout.tsx';
export { AppLayout } from '../src/layouts/AppLayout/AppLayout.tsx';
4 changes: 2 additions & 2 deletions plopfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ const componentTemplate = {
export { cl as {{{component-name}}}ClassNames };
export type {{{component-name}}}Props = React.PropsWithChildren<ComponentProps<{{{format-element-type-ts element-type}}}> & {
export type {{{component-name}}}Props = ComponentProps<{{{format-element-type-ts element-type}}}> & {
/** Whether this component should be unstyled. */
unstyled?: undefined | boolean,
/** Some property specific to \`{{{component-name}}}\`. */
variant?: undefined | 'x' | 'y',
}>;
};
{{"\\n"~}}
{{~#if component-description}}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

.bk-input-field__label {
@include bk.font(bk.$font-family-body, bk.$font-weight-semibold, bk.$font-size-m);
cursor: default;
margin-block-end: bk.$spacing-1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/DialogLayout/DialogLayout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const DialogPattern2: Story = {

<Form>
<FormLayout>
<p>Key insight has read-only access to resources within your AWS account.</p>
<p>Key Insight has read-only access to resources within your AWS account.</p>

<FieldLayout size="medium">
<InputField
Expand Down
7 changes: 6 additions & 1 deletion src/styling/global/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
overflow-wrap: break-word; // Prevent long words causing overflow
}

button, label {
button {
cursor: pointer;
user-select: none;

Expand All @@ -60,6 +60,11 @@
}
}

label {
cursor: default;
user-select: none;
}

/*
input, select, textarea {
-webkit-appearance: revert;
Expand Down

0 comments on commit 4ba6c13

Please sign in to comment.