Comments (6)
@gp-slick-coder, do you recommend updating the docs? Or removing the feature (not possible now to avoid a breaking change).
I guess it could be useful for a group of related actions, like:
from pico.
What about something like this where the whole border of the button in the group is shown instead of a broken border?
CleanShot.2024-02-17.at.01.40.44.mp4
Example from:
https://stackoverflow.com/a/67756667
from pico.
The issue with the button group overflowing seems to be due to this style rule setting a new horizontal padding of 2rem, which overrides the original horizontal padding of 1rem.
[role=group] [role=button], [role=group] [type=button], [role=group] [type=submit], [role=group] button, [role=search] [role=button], [role=search] [type=button], [role=search] [type=submit], [role=search] button {
--pico-form-element-spacing-horizontal: 2rem;
}
It seems that keeping the padding at 1rem still looks decent while allowing the display to get as small as 306px (smaller than an iPhone SE at 375px) without any overflow issues. See attached screen recording
Recording.2024-02-18.162102.mp4
from pico.
Sorry for my bad description. The feature is useful. The only issue is with the focus of the button(s).
Current behavior: On a button click, all buttons will be "focused" (as shown in the previous image).
Expected behavior: On a button click, only the button that was clicked, should be focused.
Good examples:
https://efrolic.github.io/css//button-group
https://bulma.io/documentation/elements/button/#button-addons
https://picturepan2.github.io/spectre/elements/buttons.html#buttons-groups
https://getbootstrap.com/docs/4.0/components/button-group/
from pico.
Ah, yes, I get it.
I think this style looks broken/buggy:
I still prefer this style:
Screen.Recording.2024-02-13.at.23.21.11.mov
But I'm open to a better solution.
from pico.
I am having overflow problems on mobile
The third button of the group leaves the container
from pico.
Related Issues (20)
- Missing Theme Builder HOT 2
- Remove "cursor: default" HOT 2
- v2: Card footers are not aligned in grid HOT 1
- Vertical distance between sections is too small compared to spacing between h3 h4, etc. HOT 3
- Use `button` instead of `a` for closing modals HOT 8
- Cards (`<article>` tags) have poor contrast with background in light mode HOT 2
- Grid with inputs has incorrect gap on mobile devices HOT 3
- Modal component is relying too much on Javascript HOT 9
- Input shadows are offset incorrectly in Firefox HOT 2
- Unable to use on Hugo v0.122.0 via Dart Sass HOT 5
- SassError: "This variable was not declared with !default in the @used module" HOT 3
- v2: inconsistent switch states HOT 5
- Spinner not fully visible in the `<code>` element HOT 1
- `nav li button[type="button"]` does not have smaller padding HOT 1
- node version restriction HOT 7
- Inconsistent width with role=group HOT 1
- Buttons with overflowing alpha-numeric text do not wrap HOT 1
- Unhandled overflow behaviour on dropdown LI elements
- Detected Trojan:Script/Wacatac.B!ml in latest downloads HOT 4
- Accordion within Card footer is vertically not aligned.
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 pico.