Coder Social home page Coder Social logo

Wrong selection animation about vaadin-grid HOT 6 CLOSED

vaadin avatar vaadin commented on September 21, 2024
Wrong selection animation

from vaadin-grid.

Comments (6)

amahdy avatar amahdy commented on September 21, 2024

Root cause
In Vaadin Grid, by default v-grid-row-focused class is added to the first tr. It seems that in the current design, one exact tr must have this class.

This conflicts with the current CSS

:focus .v-grid-row-focused {
...
}

Since the class v-grid-row-focused is always present, extra unneeded animation happens.

Proposed solutions

  1. Update our CSS rules and probably not use :focus.
  2. If it's a bug against Vaadin Grid design, remove the class v-grid-row-focused when it's not needed.

_Note_ v-grid-row-focused is completely different than v-grid-row-selected.

from vaadin-grid.

jouni avatar jouni commented on September 21, 2024

I’ve noticed this also, but haven’t considered it a priority yet. If possible, I would definitely opt for removing the v-grid-row-focused classname from all the rows when the grid if blurred/unfocused.

If we do that, we can also stop using :focus at the same time.

from vaadin-grid.

amahdy avatar amahdy commented on September 21, 2024

Working on a fix now for the main Vaadin Grid code. This should fix many issues in v-grid.

from vaadin-grid.

amahdy avatar amahdy commented on September 21, 2024

https://dev.vaadin.com/ticket/18521

from vaadin-grid.

jouni avatar jouni commented on September 21, 2024

Thanks to @Artur-, this issue is progressing 👍

from vaadin-grid.

jouni avatar jouni commented on September 21, 2024

Probably not worth fixing any more. Closing as “won’t fix”.

from vaadin-grid.

Related Issues (20)

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.