-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Thicker Button Borders for Some Light Palettes #8734
Comments
I had noticed this problem before. This is because the vanilla palette don't have When |
Thank you for your feedback. @Jermolene |
Hi @kookma @Leilei332 I much, much prefer the OS native appearance for most of the buttons in TW. It makes sense for things like the big download button to have a customised appearance, for example. But equally it makes sense for palettes to have the option of customising the appearance of buttons. I'd be happy to remove the |
The problem with the prerelease flexoki palette actually is, that it has So as soon as one of them is defined we also need to define the border-style. That seems to be true for Edge and FireFox. The problem is the system default is incredibly ugly. It seems Safari does it differently. That's why TW does not define |
@Leilei332 |
I think we had better keep it, so that the buttons can use the palette's color. Perhaps we can tweak the stylesheet to normalize the appearance of buttons, for example: html button {
border-style: solid;
border-radius: 4px;
border-width: 1px;
padding: 2px 1px;
} The downside is that the button's appearance won't change when the button active or hovered, so it requires further tweaking. |
If the So users would need to define some custom button-css if they do not like the native look I personally would prefer, that all 3 colours are removed by default, so the buttons look flat by default |
I've figured out how to make buttons use the palette colors without html button {
background: inherit;
color: inherit;
fill: inherit;
border-color: <<colour muted-foreground>>;
border-style: solid;
border-radius: 4px;
border-width: 1px;
padding: 2px 4px;
} |
The existing CSS in base.tid is
|
This works as expected. Tested on
Some screenshot @Jermolene |
I think this isn't ready right now. We need to implement styles for buttons with pseudo class |
Thanks @Leilei332 @kookma I would welcome a PR for the next release. |
I would be happy to help with test! So as Jeremy stated, this will go for TW 5.3.7 |
Describe the bug
Ref: Following a discussion with @Leilei332 on #8733 (comment)
While Vanilla palette the base palette in TiddlyWiki shows thin borders for buttons in the sidebar and so makes buttons looks pretty, some light palettes including the new Flexoki show thick and cluttered buttons.
See below images
Vanilla
FlexokiLight
Solarized
Expected behavior
The button should look like the vanilla. Palettes shall only change the colors NOT the thickness (so if using a color causes that effect, it should be corrected)
To Reproduce
TiddlyWiki Configuration
-TW 5.3.6-pre
-Edge 130/Chrome
Additional context
I think the buttons style in the sidebar need more attentions. This behavior also seen in some dark palettes. For some palettes, the button labels are not readable like Rocker (TW 5.3.6-pre, Edge 130)
The text was updated successfully, but these errors were encountered: