-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(sticky-header): add app-demo for sticky-header #5176
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
Conversation
add chose parent add support to 'optional 'cdkStickyRegion' input '
templateUrl: 'sticky-header-demo.html', | ||
styleUrls: ['sticky-header-demo.css'], | ||
}) | ||
|
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.
nit: remove the empty lines
import {NgModule} from '@angular/core'; | ||
import {BrowserModule} from '@angular/platform-browser'; | ||
import {StickyParentDirective, StickyHeaderDirective} from '@angular/material'; | ||
export {StickyParentDirective, StickyHeaderDirective}; |
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.
Don't need to export them
@@ -0,0 +1,20 @@ | |||
import {Component} from '@angular/core'; | |||
import {NgModule} from '@angular/core'; | |||
import {BrowserModule} from '@angular/platform-browser'; |
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.
This and NgModule
import can be removed
}) | ||
|
||
|
||
export class StickyHeaderDemo { |
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.
Remove constructor
export class StickyHeaderDemo {}
<h1>Sticky-header Demo</h1> | ||
<div id="testFor" class="container"> | ||
|
||
<div id="theStickyHeaderLalala" style="margin: 0; border: 0; padding: 0;"> |
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.
Move styles to css class if possible.
Remove the id if it's not needed
} | ||
|
||
|
||
h2 { |
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 class for these elements? h2
, p
, and div
modify
fix some code according to PR review comments
closed by accident... |
ea9651b
to
279983b
Compare
.firebaserc
Outdated
@@ -0,0 +1,5 @@ | |||
{ |
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.
Revert this file?
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.
👍 Reverted
-moz-appearance: none; | ||
} | ||
|
||
p { |
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.
Can we use class for p
h2
div
body
header
*
?
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.
Put class for p h2 div body header *
into 'democlass
' class 👍
750b8f9
to
b018f26
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.