eclipsesource / eclipsesource/jsonforms

Material labels should be vertically centered in their grid cell

Open
#1,604 0 comments 0 reactions 0 assignees View on GitHub
material react
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

**Describe the bug**
When using material react renderers, labels are aligned at the top inside their grid cell.
Combining this behavior with horizontal layouts leads to labels being shown too high.

**To Reproduce**
Steps to reproduce the behavior:
1. Have a `Label` and a `Control` next to each other inside a `HorizontalLayout`
2. The label looks to be places too high

**Expected behavior**
The label is centered in the row created by the horizontal layout.

**Screenshots**
![image](https://user-images.githubusercontent.com/6959840/86911891-5060fd00-c11c-11ea-94f8-18efb3ae365c.png)

**Browser (please complete the following information):**
Tested with Chrome and Firefox (should be browser independent)

**Used Setup (please complete the following information):**
- Framework: react
- RendererSet: material

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.