390 karma · joined Jul 13, 2020 (6y ago) · 80 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
There are certainly more UI libraries available for React than any other framework [1]. But do you think that these are also clearly better? What would be your go to framework for React? To me, it seems that the trend is going to framework-agnostic or multi-framework libraries anyway (e.g. Ark UI or Zag).
comment 3y ago · link · parent
comment 3y ago · link · parent
[1] https://youtrack.jetbrains.com/issue/IDEA-186988/Allow-commi...
comment 3y ago · link · parent
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
comment 3y ago · link · parent
comment 3y ago · link · parent
Do not track can do that, it has three possible values.
0: The user prefers to allow tracking on the target site.
1: The user prefers not to be tracked on the target site.
null: The user has not specified a preference about tracking.
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DN...The problem is that DNT is mostly ignored, and also deprecated by now.
comment 3y ago · link · parent
comment 4y ago · link · parent
Please consider accessibility when you have the urge to build custom (form) components. For checkboxes, have a look at https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ for some guidelines.
comment 4y ago · link · parent
I'm already sold on the idea of using Git as a database for content and localization. But I'm obviously biased as we are working on a similar solutation ;) It is called FrontAid and it is a CMS that stores your (localized) content in a JSON file within your own repo. More information can be found at https://frontaid.io/
Using Git for content has some great benefits. Like complete version history, easy reverts (for devs at least), (feature) branch support, Git hooks, ... And of course, you own your content at all times.
PS: Both the "Editor" and "VS-Code-Extension" links in your repo are broken.
comment 4y ago · link · parent
- https://github.com/tc39/proposal-temporal
- https://github.com/tc39/proposal-temporal#polyfills
- https://tc39.es/proposal-temporal/
- https://tc39.es/proposal-temporal/docs/index.html
- https://github.com/tc39/proposal-temporal/issues/1450
- https://tc39.es/proposal-temporal/docs/parse-draft.html
As far as I know, issue #1450 is the last remaining blocker for the standardization. I'd assume that this will be resolved in the next months. So Temporal will likely be officially released with ECMAScript 2023, but browser vendors and other implementors will start shipping it before the offical release.
comment 4y ago · link · parent
var name = true;
typeof name; // "string", not "boolean"
Luckily, this is not true within ES modules which you probably use most of the time anymway.comment 4y ago · link · parent
I would think so. And because of that, accessibility is an essential topic. Luckily, this snippet will automatically follow your zoom level and/or font size settings.
comment 4y ago · link · parent
A snippet that could work better in my opinion is the following:
html {
max-width: 70ch;
/* larger spacing on larger screens, very small spacing on tiny screens */
padding: calc(1vmin + .5rem);
/* shorthand for margin-left/margin-right */
margin-inline: auto;
/* fluid sizing: https://frontaid.io/blog/fluid-typography-2d-css-locks-clamp/ */
font-size: clamp(1em, 0.909em + 0.45vmin, 1.25em);
/* use system font stack: https://developer.mozilla.org/en-US/docs/Web/CSS/font-family */
font-family: system-ui
}
/* increase line-height for everything except headings */
body :not(:is(h1,h2,h3,h4,h5,h6)) {
line-height: 1.75;
}comment 4y ago · link · parent
https://github.com/tc39/proposals/blob/main/finished-proposa...
The ECMAScript 2022 specification can be found here (warning: large document!):
24.
ECMAScript 2022 approved(ecma-international.org ↗)
3 points · by FrontAid · 4y ago · 1 comment
comment 4y ago · link · parent
There is also an open PR to add Simple.css to the list: https://github.com/troxler/awesome-css-frameworks/pull/85
comment 5y ago · link · parent
- https://en.wikipedia.org/wiki/FLWOR
- https://www.w3.org/TR/xquery-30/#id-flwor-expressions
FLWOR is pronounced 'flower'.
comment 5y ago · link · parent
https://github.com/TimUntersberger/neogit
Similar Git tooling can be found in https://github.com/frontaid/git-cli-tools