Giter Site home page Giter Site logo

Comments (7)

dkoo avatar dkoo commented on August 29, 2024

Moving the discussion here:

My thought with this was that without the borders, it becomes really hard to tell that the listings are part of the same "parent" list when you have more than a few items in a list. Also, if we have no borders/padding when the block is unfocused, but add borders/padding when it is focused, won't that cause jitter and text reflow when the padding is added? Or require us to maintain extra padding which might look janky without visible borders?

from newspack-listings.

thomasguillot avatar thomasguillot commented on August 29, 2024

it becomes really hard to tell that the listings are part of the same "parent" list when you have more than a few items in a list

Think of the group block, with child blocks.

if we have no borders/padding when the block is unfocused, but add borders/padding when it is focused, won't that cause jitter and text reflow when the padding is added?

I guess we should just use an outline like Core blocks.

Kapture 2020-11-24 at 08 36 42

from newspack-listings.

dkoo avatar dkoo commented on August 29, 2024

I started implementing this, removing the borders and padding from Curated Lists blocks and individual listing blocks inside. What I'm finding is that it makes it nearly impossible to focus the Curated List parent block (where most of the display attributes are set) once it's been populated with inner listing blocks—because it has no padding, anywhere you click inside will end up focusing one of its inner blocks.

I'd suggest we table this for now and keep the borders and padding, unless you have some ideas how how to handle this?

from newspack-listings.

thomasguillot avatar thomasguillot commented on August 29, 2024

@dkoo What if we just keep .newspack-listings__curated-list-editor { padding: 1px 0; } That would leave users with 2 areas to access the block.
And they can always use the block navigation.

Screenshot 2020-12-04 at 08 41 57

Kapture 2020-12-04 at 08 47 37

from newspack-listings.

dkoo avatar dkoo commented on August 29, 2024

How does this look/work to you? #14

I retained a bit of padding on the sides of the Curated List block and applied negative margins so that it's still possible to click on the Curated List block in the editor body to focus it. I guess I'm obsessed with making sure that's possible because it's mainly how I use the block editor. 😄

from newspack-listings.

matticbot avatar matticbot commented on August 29, 2024

🎉 This issue has been resolved in version 1.1.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from newspack-listings.

matticbot avatar matticbot commented on August 29, 2024

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from newspack-listings.

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.