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

#164 added alignment config option for level item component #171

Merged
merged 5 commits into from
Apr 28, 2023

Conversation

Rafal-DS
Copy link
Contributor

Description

Added alignment config option for author.

Motivation and Context

#164

Screenshots (if appropriate)

Screenshot 2023-04-26 at 11 53 25

Upgrade notes (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue) labeled with bug
  • New feature (non-breaking change which adds functionality) labeled with enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code standards of this project.
  • My change requires updating the documentation. I have updated the documentation accordingly.


public String getAlignment() {
if (alignment.equals("is-left")) {
return "is-justify-content-flex-start";
Copy link
Member

Choose a reason for hiding this comment

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

Would it work for a more complex structure? I mean we could put a container to the level item and some contents inside the container. I think we have to use has-text-left/center/right? And by default we should use has-text-left

Copy link
Contributor

Choose a reason for hiding this comment

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

I had same question in my head.. Rest changes look good

Copy link
Member

Choose a reason for hiding this comment

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

Or maybe we need both classes?

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 think we need both classes. I updated the code.

Copy link
Contributor

@AdrianStaskiewicz AdrianStaskiewicz left a comment

Choose a reason for hiding this comment

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

Looks ok, just one open question to discuss


public String getAlignment() {
if (alignment.equals("is-left")) {
return "is-justify-content-flex-start";
Copy link
Contributor

Choose a reason for hiding this comment

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

I had same question in my head.. Rest changes look good

@Rafal-DS Rafal-DS merged commit d6e0fa3 into develop Apr 28, 2023
@Rafal-DS Rafal-DS deleted the #164-level-item-component-authorable-alignment branch April 28, 2023 07:20
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Level Item component has text centered if it's directly in Level component
3 participants