pureblazor / components Goto Github PK
View Code? Open in Web Editor NEWPureBlazor UI Components
Home Page: https://pureblazor.com
License: MIT License
PureBlazor UI Components
Home Page: https://pureblazor.com
License: MIT License
See #57 (comment)
Fix by:
Some component libraries have a Size
property that scales the component using manual inputs, usually pixels, but I recently worked on overhauling a component to scale via relative units and thought I should put the idea out there!
PureBlazor uses relative units all over the place, which is awesome, but they are typically rem
which means you can't freely scale up a component.
Here are some videos of me changing the font-size
of a component (not the text):
The icons and margins don't scale with the font size.
There isn't necessarily a right or wrong way of doing this, but there is some utility in being able to scale up a component to your own size. This might remove the need for a custom sizing system altogether and thus pre-emptively simplify the code.
You could replace some cases of rem
with em
and make the icons scale.
Mock-up:
Known issues when combining the Tailwind v4 version of this library with an app that uses v3
Styles="border border-{color}-{shade}"
Migrate the remaining components from the Mk
suffix to the new Pure
suffix.
/components
folderMakani.Docs
-> PureBlazor.XYZ
(maybe PureBlazor.Components.Docs
?)At the completion of this ticket, there should be zero references to Makani
or Mk
in this repository.
Website is currently private, we also moved docs to the website for ease of use for now.
Consider-
A ripple effect for interactable components:
It should originate from the pointer:
It should start when the pointer is held and end when the pointer is released (with a minimum of about half a second or so):
And it should be able to ripple multiple times at once:
A recent change has caused a regression in the dropdown menu. The button appears, but the actual dropdown menu has disappeared.
Consider investigating the new Anchor Positioning API while implementing a fix - there have been odd positioning errors I've noticed in some cases.
https://twitter.com/Una/status/1783913923072180603
https://codepen.io/collection/ExkRWw?grid_type=grid&cursor=eyJwYWdlIjoyfQ==
Describe the bug
Passing a text style, e.g. text-sm
, will cause other unrelated styles to disappear, e.g. text-brand-800
.
To Reproduce
This can be reproduced by viewing the PureBreadcrumbItem
:
<PureBreadcrumb>
<PureBreadcrumbItem Href="/sites" Name="Sites"/>
<PureBreadcrumbItem Href="/sites/1" Name="Site 1"/>
<PureBreadcrumbItem Name="Page"/>
</PureBreadcrumb>
Expected behavior
The PureBreadcrumbItem
should have a smaller size, but retain the color applied via the style.
Screenshots
Additional context
StylePrioritizer
and KeyExtractor.ToCssKey(...)
We are utilizing Playwright for integration testing of the components on the website.
Describe the bug
Adding your own Tailwind CSS generated styles in the page with the pureblazor.css
has some minor visual issues
To Reproduce
Steps to reproduce the behavior:
pureblazor.css
Expected behavior
Determine the best way to merge or layer multiple tailwind css files (e.g. importing into the layer)
Describe the bug
This is more of a concern. Why do you try to recreate a component library from scratch ? Why not to use some open-source variant ? like MudBlazor and if needed just customize the design or do some abstraction layer between ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.