Skip to content

fix: bim-icon scg image position & bim-label font-size/line height #56.#67

Merged
HoyosJuan merged 5 commits into
ThatOpen:mainfrom
GoulielmosFloros:bim-icon-svg-update
Apr 1, 2025
Merged

fix: bim-icon scg image position & bim-label font-size/line height #56.#67
HoyosJuan merged 5 commits into
ThatOpen:mainfrom
GoulielmosFloros:bim-icon-svg-update

Conversation

@GoulielmosFloros
Copy link
Copy Markdown
Contributor

Description

For this one #56 I fixed the initial bug for the svg image by adding display: flex; in the style of packages\core\src\components\Icon.ts.

I also fixed a related issue with regards to the bim-label size and line height with ref #55, by changing line-height from 1 rem to 1em, from packages\core\src\components\Label.ts style. We could also remove the property entirely and it would work.

To test it you can go to the Label html file change the font-size and the text and see that the icon will always be on the same place and the line-height now adjusts to the size.

Reviewed-by: Goulielmos Floros
Ref: #56

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following:

  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Follow the Conventional Commits v1.0.0 standard for PR naming (e.g. feat(examples): add hello-world example).
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

…atOpen#56.

For this one ThatOpen#56 I fixed the initial bug for the svg image by adding display: flex; in the style of packages\core\src\components\Icon.ts.

I also fixed a related issue with regards to the bim-label size and line height with ref ThatOpen#55, by changing line-height from 1 rem to 1em, from packages\core\src\components\Label.ts style. We could also remove the property entirely and it would work.

To test it you can go to the Label html file change the font-size and the text and see that the icon will always be on the same place and the line-height now adjusts to the size.

Reviewed-by: Goulielmos Floros
Ref: ThatOpen#56
@HoyosJuan HoyosJuan merged commit 604a4b9 into ThatOpen:main Apr 1, 2025
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.

2 participants