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

Adjust internal tab spacing #115

Merged
merged 5 commits into from Sep 18, 2018
Merged

Adjust internal tab spacing #115

merged 5 commits into from Sep 18, 2018

Conversation

jouni
Copy link
Member

@jouni jouni commented Sep 14, 2018

Make the spacing between the edge of the tab scroll area and the first tab the same as the space between individual tabs.

Adjust the spacing for the icon-on-top theme variant, so that it’s visually more balanced (equal space between the text and icon as well as text and the selection indicator).

Before/after:

tab-spacing


This change is Reviewable

Make the spacing between the edge of the tab scroll area and the first tab the same as the space between individual tabs.

Adjust the spacing for the `icon-on-top` theme variant, so that it’s visually more balanced (equal space between the text and icon as well as text and the selection indicator).
@jouni
Copy link
Member Author

jouni commented Sep 14, 2018

These changes make the tabs work nicely together with the upcoming app-layout component.

platosha added a commit to vaadin/vaadin-app-layout that referenced this pull request Sep 14, 2018
See also: vaadin/vaadin-tabs#115

Changes in core styles:
- Change CSS navbar layout from brute-force absolute to flex
- Change default navbar height to `auto`
- Remove unnecessary branding constrains, fixes #30
- Expose navbar background custom CSS property, use default value
- Support inheriting custom CSS properties, fixes #28

Lumo theme:
- Remove host font and color reset
- Apply background color on navbar to match the original mockups
- Refine spacing for navbar and its contents
- Decrease font size for tabs in the menu part on mobile

Material theme:
- Remove host font and color reset
- Apply background color on navbar
- Add drop shadow for navbar from the Material Design Guide
- Refine spacing for navbar and its contents

Demos:
- Use icon-on-top tabs in the first example
- Remove `theme="minimal"` to restore the proper selected tab indication
- Use explicit branding image size
- Use explicit global content styles
- Increase content padding to match the navbar default
- Use `max-width` for mobile demo, fixes overflow with narrow viewport size
platosha added a commit to vaadin/vaadin-app-layout that referenced this pull request Sep 17, 2018
See also: vaadin/vaadin-tabs#115

Changes in core styles:
- Change CSS navbar layout from brute-force absolute to flex
- Change default navbar height to `auto`
- Remove unnecessary branding constrains, fixes #30
- Expose navbar background custom CSS property, use default value
- Support inheriting custom CSS properties, fixes #28

Lumo theme:
- Remove host font and color reset
- Apply background color on navbar to match the original mockups
- Refine spacing for navbar and its contents
- Decrease font size for tabs in the menu part on mobile

Material theme:
- Remove host font and color reset
- Apply background color on navbar
- Add drop shadow for navbar from the Material Design Guide
- Refine spacing for navbar and its contents

Demos:
- Use icon-on-top tabs in the first example
- Remove `theme="minimal"` to restore the proper selected tab indication
- Use explicit branding image size
- Use explicit global content styles
- Increase content padding to match the navbar default
- Use `max-width` for mobile demo, fixes overflow with narrow viewport size
@limonte limonte merged commit 662f407 into master Sep 18, 2018
@limonte limonte removed the in review label Sep 18, 2018
@web-padawan web-padawan deleted the adjust-spacing branch September 18, 2018 07:29
limonte pushed a commit that referenced this pull request Sep 18, 2018
* Adjust internal tab spacing

Make the spacing between the edge of the tab scroll area and the first tab the same as the space between individual tabs.

Adjust the spacing for the `icon-on-top` theme variant, so that it’s visually more balanced (equal space between the text and icon as well as text and the selection indicator).

* Restore the vertical orientation padding inside the tabs

* Update visual tests for Lumo tabs

* Fix equal-width-tabs test regression caused by theme change

* Add istanbul-ignore comments for old workaround
@limonte
Copy link
Contributor

limonte commented Sep 18, 2018

Released in https://github.com/vaadin/vaadin-tabs/releases/tag/v2.1.1

DiegoCardoso pushed a commit to vaadin/vaadin-app-layout that referenced this pull request Sep 18, 2018
* UI design fixes

See also: vaadin/vaadin-tabs#115

Changes in core styles:
- Change CSS navbar layout from brute-force absolute to flex
- Change default navbar height to `auto`
- Remove unnecessary branding constrains, fixes #30
- Expose navbar background custom CSS property, use default value
- Support inheriting custom CSS properties, fixes #28

Lumo theme:
- Remove host font and color reset
- Apply background color on navbar to match the original mockups
- Refine spacing for navbar and its contents
- Decrease font size for tabs in the menu part on mobile

Material theme:
- Remove host font and color reset
- Apply background color on navbar
- Add drop shadow for navbar from the Material Design Guide
- Refine spacing for navbar and its contents

Demos:
- Use icon-on-top tabs in the first example
- Remove `theme="minimal"` to restore the proper selected tab indication
- Use explicit branding image size
- Use explicit global content styles
- Increase content padding to match the navbar default
- Use `max-width` for mobile demo, fixes overflow with narrow viewport size
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.

None yet

4 participants