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(ui-library): harmonised property names #980

Merged
merged 10 commits into from
Mar 15, 2024

Conversation

JpunktWpunkt
Copy link
Contributor

davidken91
davidken91 previously approved these changes Mar 6, 2024
Copy link
Contributor

@thrbnhrtmnn thrbnhrtmnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in Storybook, cant evaluate the other parts though

One small thing we could fix, while changing the index.stories.ts for the counter would be the text in the "Variant" section: In the text we are saying there is a "default" variant, but it is actually called "neutral".

angsherpa456
angsherpa456 previously approved these changes Mar 7, 2024
Copy link
Contributor

@angsherpa456 angsherpa456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@property() current = 0;
@property() max = 0;
@property() size?: FormSizesType = 'md';
@property({ type: Number }) value = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be more consistent because the type is defined for some and for some its missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only do that in these case where lit analyze is barking. Apart from that, this is a topic we still need to talk about anyway. From consistent I agree with you.

const dynamicStyles = this.theme === 'Light' ? [counterLight] : [counterDark];

const classes = classMap({
'blr-counter': true,
[this.variant]: this.variant,
[`${this.size}`]: this.size,
[`${this.sizeVariant}`]: this.sizeVariant,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, does this need to be in template literal, can't it be just like in line number 24?

@ChristianHoffmannS2 ChristianHoffmannS2 changed the title fix(ui-library): harmonized property names fix(ui-library): harmonised property names Mar 8, 2024
Copy link
Contributor

@thrbnhrtmnn thrbnhrtmnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thrbnhrtmnn thrbnhrtmnn merged commit 9b5185a into develop Mar 15, 2024
4 of 5 checks passed
@thrbnhrtmnn thrbnhrtmnn deleted the fix/876-counter-harmonized-property-names branch March 15, 2024 08:29
ChristianHoffmannS2 added a commit that referenced this pull request Mar 26, 2024
* fix(ui-library): harmonized property names

* fix(ui-library): added changes after review

* fix(storybook): changed values after review

* fix(ui-library): removed lit Types

---------

Co-authored-by: Christian Hoffmann <[email protected]>
Co-authored-by: Thorben Hartmann <[email protected]>
ChristianHoffmannS2 added a commit that referenced this pull request Mar 26, 2024
* fix(ui-library): harmonized property names

* fix(ui-library): added changes after review

* fix(storybook): changed values after review

* fix(ui-library): removed lit Types

---------

Co-authored-by: Christian Hoffmann <[email protected]>
Co-authored-by: Thorben Hartmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Counter - Ensure Consistency between Storybook Documentation and Codebase Property Names
6 participants