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

feat(tabset): tabs horizontal alignment #1210

Closed
wants to merge 3 commits into from
Closed

feat(tabset): tabs horizontal alignment #1210

wants to merge 3 commits into from

Conversation

ktriek
Copy link
Contributor

@ktriek ktriek commented Jan 12, 2017

Tabs Horizontal alignment

Add the horizontal alignment support to the tabs

  • Start (Default)
  • Center
  • End

http://v4-alpha.getbootstrap.com/components/navs/#horizontal-alignment

@@ -110,11 +110,16 @@ export class NgbTabset implements AfterContentChecked {
@Input() type: 'tabs' | 'pills';

/**
* The horizontal alignment of the nav with flexbox utilities. Can be one of 'start', 'center' or 'end'
*/
@Input() alignment: 'start' | 'center' | 'end';

Choose a reason for hiding this comment

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

How about calling it justify?

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 had to pick between justify, align and alignement , @pkozlowski-opensource should we change the name to justify?

Choose a reason for hiding this comment

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

My preference would go to justify so yes, let's change it.

@pkozlowski-opensource
Copy link
Member

Thnx for the PR. Could you please fix the linting issue? It fails the build currently: https://travis-ci.org/ng-bootstrap/ng-bootstrap/builds/191182918

Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

Thanks for this update. LGTM, except for component member alphabetic ordering as described in code conventions

@@ -8,4 +8,5 @@ import {Injectable} from '@angular/core';
@Injectable()
export class NgbTabsetConfig {
type: 'tabs' | 'pills' = 'tabs';
justify: 'start' | 'center' | 'end' = 'start';
Copy link
Member

Choose a reason for hiding this comment

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

Please order fields alphabetically

@@ -110,11 +110,19 @@ export class NgbTabset implements AfterContentChecked {
@Input() type: 'tabs' | 'pills';

/**
* The horizontal alignment of the nav with flexbox utilities. Can be one of 'start', 'center' or 'end'
*/
@Input() justify: 'start' | 'center' | 'end';
Copy link
Member

Choose a reason for hiding this comment

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

Please order inputs alphabetically

@pkozlowski-opensource
Copy link
Member

pkozlowski-opensource commented Jan 16, 2017

Merged as 00114f3, thnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants