[dragdrop] Style directory tree items for files-ng drag drop
Style directory tree drop target (tree-items) for files-ng. If they can accept a drop, they should have gray background (same as :hover color). If they cannot accept, they deny the drop and they should have a pinky- red background (G Red 50). Add CSS style for these cases (accepts and denies). Update the transfer controller code to add or remove classes .accepts and .denies as needed to accept or deny a drop. Note the files-ng design does not say what to do when the active folder (drawn blue) cannot accept a drop, so my decision was to turn it pinky- red too. Similarly, what to do if it can accept a drop was unspecified, so my decided to turn it gray (same as the :hover color). This way, all directory tree-items have the same drag-drop effect color regardless of whether a tree-item is the active folder or not. Bug: 1002394 Change-Id: I4ee09697e0910d56239fd56ff4760352cb9290f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2262380 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Alex Danilo <adanilo@chromium.org> Cr-Commit-Position: refs/heads/master@{#781857}
Showing
Please register or sign in to comment