Comments (11)
All the edge cases are fixed! Thank you for all the help @NicoZweifel 🥳
from components.
Let's get rid of sticky
on the navbar then. I was messing around with it and we could use fixed
instead of sticky
then we just need margin/padding/a spacer div so the content doesn't show up under the nav bar until the page loads.
from components.
Another one of those, nice catch :P
from components.
I had the same issue on the right side in this PR, but decided to use shorter text here.
If you prefer click to copy
I could revert to that when changing z-index
works, but I feel like it is a bit odd to have the longer version instead of just copy
.
from components.
It seems that this happens only for Grouped Code Blocks because the normal Code Blocks have a top margin.
I am ivestigating this issue here:#44
from components.
@NicoZweifel I tested mint
with the new z-index but the backdrop-blur
class on the navigation bar is still blurring the component despite the z-index being higher. Seems like the backdrop-blur affects components regardless of z-index. There are other steps required to avoid blurring the tooltip when I searched StackOverflow for this problem.
Can you look into how to get the backdrop-blur not to affect the tooltip?
from components.
Yeah I can take a look tomorrow 👍
from components.
When the new components version is published, I can continue and merge this: https://github.com/mintlify/mint/pull/299
from components.
Issue is fixed for most code blocks except for the right-side bar ones that have sticky
set.
from components.
@tobias-mintlify It is because of a new StackingContext. you can read about it here.
"A stacking context is formed, anywhere in the document, by any element in the following scenarios:
- Root element of the document ().
- Element with a position value absolute or relative and z-index value other than auto.
- Element with a position value fixed or sticky (sticky for all mobile browsers, but not older desktop browsers)."
from components.
Sounds good, I could take a look today/tomorrow.
from components.
Related Issues (18)
- Show "Click to Copy" tooltip when you hover over the clipboard of a code block HOT 1
- Default CodeGroup to a dropdown when file names exceed width of the container
- Cannot type a negative sign in numerical inputs for the API Playground
- Add aria labels to clipboard button in CodeGroups HOT 2
- Combine copiedTooltipColor and tooltipColor HOT 2
- Callback when clipboard is clicked on code blocks HOT 4
- Support images in the Card icon prop type HOT 10
- Make components to show images side by side HOT 3
- Cards should accept an image prop HOT 5
- GraphQL playground HOT 2
- Tree-shaking HOT 14
- Add background color on card components HOT 1
- Add precommit formatting hook to the components repo HOT 1
- Upgrade to Storybook 7
- Make a ColorFrame component HOT 2
- Mermaid.js component HOT 3
- Support Global Sync for `<Tabs>` Components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from components.