-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(theme): add progress-bar component #459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple of changes, otherwise looks great!
DEV_DOCS.md
Outdated
|
||
- tests | ||
```` | ||
src/framework/theme/components/your-component/your-component.spec.ts if you want basic rendering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want basic rendering - > if you want to test basic rendering
DEV_DOCS.md
Outdated
- register your component in docs | ||
```` | ||
src/playground/your-component/your-component-showcase.component.ts (create example usage of your component) | ||
src/playground/your-component/your-component-showcase.component.html (most probably looks like <nb-your-component></nb-your-component>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add it to structure.ts
DEV_DOCS.md
Outdated
src/playground/playground.module.ts (register your component in module) | ||
src/playground/playground-routing.module.ts (routing) | ||
|
||
your-component.component.ts (add line in docs section- * @example(Your component, your-component/your-component-showcase.component) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example -> stacked-example
.progress-container { | ||
height: nb-theme(progress-bar-height); | ||
border-radius: nb-theme(progress-bar-radius); | ||
background-color: nb-theme(progress-bar-bg-color); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
progress-bar-bg-color -> rogress-bar-bg
background-color: nb-theme(progress-bar-primary-bg-color); | ||
} | ||
&.info { | ||
background-color: nb-theme(progress-bar-info-bg-color); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no color after bg
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*/ | ||
|
||
import {Component, Input} from '@angular/core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces inside { }
* Progress bar accepts property `value` in range 0-100 | ||
* @stacked-example(Progress bar, progress-bar/progress-bar-showcase.component) | ||
* | ||
* Progress bar background configured by providing a `status` property: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..could be configured by..
* Progress bar background configured by providing a `status` property: | ||
* @stacked-example(Progress bar status, progress-bar/progress-bar-status.component) | ||
* | ||
* Progress bar size (height and font-size) configured by providing a `size` property: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..could be configured by..
* Progress bar size (height and font-size) configured by providing a `size` property: | ||
* @stacked-example(Progress bar size, progress-bar/progress-bar-size.component) | ||
* | ||
* `displayValue` property shows current value inside progress bar. It's also possible to add custom text inside tag: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for tag
@Component({ | ||
selector: 'nb-progress-bar', | ||
template: ` | ||
<div class="progress-container {{size ? '' + size : ''}}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces inside { }
… inline examples (akveo#427)
ec8770b
to
4c5f2a5
Compare
Please read and mark the following check list before creating a pull request:
Short description of what this resolves:
Progress bar component