Giter Club home page Giter Club logo

Comments (6)

BE-Webdesign avatar BE-Webdesign commented on August 27, 2024 1

Basically, controls should always be on top so they are not hidden, and "floated" blocks should appear at a higher z-index than normal flow blocks.

from gutenberg.

BE-Webdesign avatar BE-Webdesign commented on August 27, 2024

Fixing this can quickly lead into z-index hell 😉

from gutenberg.

mtias avatar mtias commented on August 27, 2024

@jasmussen had some thoughts on this. Seems just bumping z-index for floated content would be fine :)

from gutenberg.

BE-Webdesign avatar BE-Webdesign commented on August 27, 2024

They can then overlap controls of another element due to the higher z-index. So we will want to probably have all controls at a z-index of 3, and any "floated" content have a z-index of 2 for now.

from gutenberg.

jasmussen avatar jasmussen commented on August 27, 2024

@jasmussen had some thoughts on this. Seems just bumping z-index for floated content would be fine :)

Copying from Slack:

this would probably work pretty well if we could z-index the image on top, and perhaps add a white border so it "cuts through" the paragraph block border

@BE-Webdesign:

They can then overlap controls of another element due to the higher z-index. So we will want to probably have all controls at a z-index of 3, and any "floated" content have a z-index of 2 for now.

Can you elaborate? You'll only ever see the block outlines and formatting controls of any one selected block at any one time, in this prototype.

from gutenberg.

BE-Webdesign avatar BE-Webdesign commented on August 27, 2024

@jasmussen

You'll only ever see the block outlines and formatting controls of any one selected block at any one time, in this prototype.

Yes, so if you have the controls of the element that is not z-indexed higher active, ( inline controls, adding a new block controls, etc. ) potentially the "floated" content with a higher z-index covers it. Just came across it, while goofing around with the editor and fixing the z-index. Controls quickly became covered by the new higher priority z-index block.

from gutenberg.

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.