Code Monkey home page Code Monkey logo

Comments (14)

defeo avatar defeo commented on August 18, 2024 1

I'd like to think more about other ways of triggering the toggling.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

We could fix this with more javascript that on load looks for all checked checkboxes and ensures the class is there?

Not sure of a better solution (without just going to a pure HTML/CSS solution where rows are visible if the checkbox has the :checked decorator.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

If you're happy with it, I can write the JS to add the toggle on load for checkboxes with a tick?

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

I wonder whether we can modify the layout with a full row cell containing a details / summary split. This might make the table feel messy tho

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

So this kind of works with pure HTML, but the only issue is one has to nest tables and this means it'll be hard to make the cells align nicely I believe. Example in the new branch subvariants-new-ui (branched from subvariants)

Edit: the issue is we cannot place a details element within a table or tr element but we can place it in a td. This means we must then make a new table for variants.

Screenshot 2022-08-24 at 6 03 06 pm

Screenshot 2022-08-24 at 6 03 13 pm

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

Okay, new push which ditches trying to force HTML to do something it doesnt want to do, and instead replaces all checkboxes with buttons.

Have a look what you think, but this fixes the soft refresh problem at least

Edit: I'm not certain about the blue highlight for variants though. Makes them stand out a bit too much I think.

from issikebrokenyet.github.io.

defeo avatar defeo commented on August 18, 2024

Did you push? I don't see anything new on subvariants-new-ui

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

Sorry Luca, I committed without pushing. I was a bit distracted last night.

Screenshot in case you want to see a preview but dont have time to spin up the site yourself currently

Screenshot 2022-08-25 at 9 48 51 am

from issikebrokenyet.github.io.

defeo avatar defeo commented on August 18, 2024

What about something more compact:
Screenshot 2022-08-25 at 14-01-00 Is SIKE broken yet

I pushed this to a new branch subvariants-new-ui-compact. I also played a bit with the CSS. The triangle's a bit hard to catch with the mouse, it requires more fiddling with ::before, paddings, the transformation origin, etc.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

Yeah this is nice. I was worried this might not be obvious enough but maybe I can add a tooltip on hover too :)

Away from my laptop but will experiment this evening. Your idea is certainly neater :)

Edit: We could also make clicking the parent variant name act as the button so it's easier to click

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

Did some work on this but mainly just wasted energy fighting CSS and not not getting very far...

I made some progress with making the triangle easier to click, although firefox is more buggy than chrome here.

Safari is a nightmare with visibility: collapse though, this really needs to be fixed or avoided. This is the problem in #28

Screenshot 2022-08-25 at 11 10 55 pm

Screenshot 2022-08-25 at 11 11 17 pm

from issikebrokenyet.github.io.

defeo avatar defeo commented on August 18, 2024

I also played a bit with the css. I removed the styling on the .vbtn class I'd say the variant button is ok, now. Tested in Chrome and Firefox.

from issikebrokenyet.github.io.

GiacomoPope avatar GiacomoPope commented on August 18, 2024

Branched this to subvariants-new-ui-compact-grid to use a grid to address the other issue, but everything from this solution carries over nicely

from issikebrokenyet.github.io.

defeo avatar defeo commented on August 18, 2024

Merged the solution using buttons.

from issikebrokenyet.github.io.

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.