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

Allow custom html in title #51

Merged
merged 10 commits into from
Dec 18, 2018
Merged

Conversation

tulioag
Copy link
Contributor

@tulioag tulioag commented Dec 14, 2018

Closes #10


This change is Reviewable

Copy link
Contributor

@DiegoCardoso DiegoCardoso left a comment

Choose a reason for hiding this comment

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

Nice! We are almost there! 😃

I have some comments bellow and sorry for not being able to review it right away.

Reviewed 1 of 3 files at r1.
Reviewable status: 1 of 3 files reviewed, 2 unresolved discussions (waiting on @tulioag and @DiegoCardoso)


demo/element-basic-demos.html, line 59 at r1 (raw file):

    <vaadin-demo-snippet id="login-overlay">
      <template preserve-content>
      <vaadin-login-overlay><h1 slot="title">My App</h1></vaadin-login-overlay>

nit: indentation is not correct.

Also, I am wondering whether it makes sense to show this feature here or in another example. It may make more sense to have it in an advanced tab, so we can keep the basic examples simple. What do you think?


src/vaadin-login-overlay.html, line 110 at r1 (raw file):

        }

        _createTeleporter() {

Why aren't teleport and unteleport functions declared straight as part of VaadinLoginOverlay? teleported could be a private member of the class, as it makes sense to keep it cached. That way, we wouldn't need to create this for every instance of vaadin-login-overlay.

@coveralls
Copy link

coveralls commented Dec 17, 2018

Pull Request Test Coverage Report for Build 203

  • 13 of 13 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 98.23%

Totals Coverage Status
Change from base Build 191: 0.3%
Covered Lines: 81
Relevant Lines: 81

💛 - Coveralls

Copy link
Contributor Author

@tulioag tulioag left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 8 files reviewed, 2 unresolved discussions (waiting on @DiegoCardoso)


demo/element-basic-demos.html, line 59 at r1 (raw file):

Previously, DiegoCardoso (Diego Cardoso) wrote…

nit: indentation is not correct.

Also, I am wondering whether it makes sense to show this feature here or in another example. It may make more sense to have it in an advanced tab, so we can keep the basic examples simple. What do you think?

Agreed. Done.


src/vaadin-login-overlay.html, line 110 at r1 (raw file):

Previously, DiegoCardoso (Diego Cardoso) wrote…

Why aren't teleport and unteleport functions declared straight as part of VaadinLoginOverlay? teleported could be a private member of the class, as it makes sense to keep it cached. That way, we wouldn't need to create this for every instance of vaadin-login-overlay.

The idea was to group the functionality in one opaque object. I refactored this so now the _teleport function just returns a function to undo the teleport. Besides that, I added caching for the query .

Copy link
Contributor Author

@tulioag tulioag left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 8 files reviewed, 1 unresolved discussion (waiting on @DiegoCardoso)


src/vaadin-login-overlay.html, line 110 at r1 (raw file):

Previously, tulioag (Tulio Garcia) wrote…

The idea was to group the functionality in one opaque object. I refactored this so now the _teleport function just returns a function to undo the teleport. Besides that, I added caching for the query .

Done.

Copy link

@alexberazouski alexberazouski left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 3 files at r2, 4 of 5 files at r3.
Reviewable status: 6 of 8 files reviewed, 2 unresolved discussions (waiting on @alexberazouski, @DiegoCardoso, and @tulioag)


demo/advanced-demos.html, line 12 at r3 (raw file):

    <vaadin-demo-snippet id="login-overlay">
      <template preserve-content>
        <vaadin-login-overlay><h1 slot="title"><iron-icon icon="vaadin:vaadin-h"></iron-icon> My App</h1></vaadin-login-overlay>

nitpick: Icon and text are misaligned

@tulioag tulioag merged commit 560f68e into master Dec 18, 2018
@tulioag tulioag deleted the feat/10-allow-custom-html-in-title branch December 18, 2018 09:23
alexberazouski pushed a commit that referenced this pull request Dec 18, 2018
* Added style for advanced demo

* Updated test to see if teleport is redone when overlay is opened again.
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