Coder Social home page Coder Social logo

jouni / j-elements Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 1.03 MB

Proof-of-concept and prototype web components to fill in some gaps in the Vaadin components collection

Home Page: https://jelements.netlify.com

License: Apache License 2.0

HTML 3.76% JavaScript 32.39% CSS 63.85%
web-components webcomponents

j-elements's People

Contributors

dependabot[bot] avatar jouni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

j-elements's Issues

Consultation project?

Hi @jouni. I researched j-elements and found them quite intriguing.

Was wondering, are you also available for some independent consulting work, or what would be the best way to work with you? We are thinking about building our web app redesign on Vaadin Web Components, but are new to both Web Components and Vaadin, and would perhaps need occasional guiding and insight into what are optimal solutions in specific scenarios.

Your j-elements repository shows you think in interesting experiments, like us, so it feels like there would be good synergy of competence. Looking forward to hearing back, thanks.

Avatar abbreviation font size

The j-avatar abbreviation font size adapt to small and large themes, but if you need a larger (or smaller) avatar and set the width/height explicitly, the abbreviation font size does not adapt.

It would be great to have the abbreviation font size to be relative to the component size.

Drawer: sub-menu solution?

<vaadin-tabs> currently renders top level menu items, but what if sub-menu items are needed, like https://cdn.vaadin.com/vaadin-lumo-styles/1.5.0/demo/icons.html

image

<vaadin-context-menu> is the easily available technological choice, but its UX may be suboptimal. For example, if a mobile user taps a collapsed menu item somewhere at the top, context menu suddenly popping up from the bottom seems weird. See screenshot:

image

Your thoughts?

Mobile drawer not Firefox compatible

Slack thread: https://polymer.slack.com/archives/C04EYH0AD/p1569343016005500?thread_ts=1568378635.002200&cid=C04EYH0AD

jouni:vaadin: 24 hours ago
😅 definitely not supposed to hide itself like that! I’ve only been testing it on my iPhone 😊

leho 22 hours ago
So webkit vs gecko thing huh

leho 22 hours ago
Are you interested in taking a look at the code if I file an issue, or should I just Upwork it

jouni:vaadin: 19 hours ago
I already took a look. The problem is somehow with touch events, that in Firefox an element messes those up, and a touch event listener doesn’t get fired properly. Adding the following in j-app-layout.js fixes it:

jouni:vaadin: 19 hours ago
One addition: there’s still the problem in Firefox that you can’t scroll the menu in the drawer using touch. Didn’t have time to debug that yet.

jouni:vaadin: 19 hours ago
Re: the touch event and : I’m not sure that was actually the right fix. Doesn’t work anymore 😄

Drawer UX: down-caret overflow indicator

Drawer UX: for long menus, it'd probably be useful to have a down-caret overflow indicator there, as well Helps all device categories to say " I'm scrollable"

j-card does not seem to work out of the box.

I added j-card to my app:

<link rel="import" href="../../bower_components/j-elements/j-card.html">
...
<j-card>hello</j-card>

Then I checked the browser. J-card did not visually add anything. In the console there's an error:

Uncaught TypeError: Vaadin.ThemableMixin is not a function
    at j-card.html:198
    at j-card.html:265

and the row 198 is:

class CardElement extends Vaadin.ThemableMixin(Polymer.Element) {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.