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

fix(877): Ensure Consistency between Storybook Documentation and Code… #941

Merged
merged 1 commit into from
Feb 21, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const ButtonGroup = (
};

const defaultParams: BlrButtonGroupType = {
size: 'md',
sizeVariant: 'md',
alignment: 'left',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { BlrButtonGroupType } from '.';
import { BlrTextButtonRenderFunction } from '../text-button/renderFunction';

const sampleParams: BlrButtonGroupType = {
size: 'md',
sizeVariant: 'md',
alignment: 'left',
};

Expand Down
4 changes: 2 additions & 2 deletions packages/ui-library/src/components/button-group/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import { TAG_NAME } from './renderFunction';
export class BlrButtonGroup extends LitElement {
static styles = [styleCustom];

@property() size: ButtonGroupSizesType = 'md';
@property() sizeVariant: ButtonGroupSizesType = 'md';
@property() alignment: ButtonGroupAlignmentType = 'center';

protected render() {
const classes = classMap({
'blr-button-group': true,
[this.alignment]: this.alignment,
[this.size]: this.size,
[this.sizeVariant]: this.sizeVariant,
});

return html`
Expand Down
Loading