Skip to content

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

Closed
wants to merge 8 commits into from

Conversation

sllethe
Copy link
Contributor

@sllethe sllethe commented Jun 16, 2017

No description provided.

add chose parent

add support to 'optional 'cdkStickyRegion' input '
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 16, 2017
@tinayuangao tinayuangao changed the title add app-demo for sticky-header feat(sticky-header): add app-demo for sticky-header Jun 16, 2017
@tinayuangao tinayuangao self-requested a review June 16, 2017 22:09
@tinayuangao tinayuangao self-assigned this Jun 16, 2017
templateUrl: 'sticky-header-demo.html',
styleUrls: ['sticky-header-demo.css'],
})

Copy link
Contributor

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};
Copy link
Contributor

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';
Copy link
Contributor

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 {
Copy link
Contributor

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;">
Copy link
Contributor

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 {
Copy link
Contributor

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

@sllethe sllethe closed this Jun 21, 2017
@sllethe sllethe deleted the sticky-header2 branch June 21, 2017 23:38
@sllethe sllethe restored the sticky-header2 branch June 21, 2017 23:40
@sllethe
Copy link
Contributor Author

sllethe commented Jun 21, 2017

closed by accident...

.firebaserc Outdated
@@ -0,0 +1,5 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert this file?

Copy link
Contributor Author

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 {
Copy link
Contributor

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 *?

Copy link
Contributor Author

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 👍

@sllethe sllethe force-pushed the sticky-header branch 2 times, most recently from 750b8f9 to b018f26 Compare July 18, 2017 20:33
sllethe added 3 commits July 24, 2017 12:20
revert firebase file
nit
Put class for p h2 div body header * into 'democlass' class
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants