Giter Club home page Giter Club logo

components's People

Contributors

codymullins avatar dependabot[bot] avatar fdaniels110 avatar modernmak avatar nickolaydimitrov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

components's Issues

Scaling components via font size

Problem

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.

Demonstration

Here are some videos of me changing the font-size of a component (not the text):

video5.mp4
video4.mp4
video6.mp4

The icons and margins don't scale with the font size.

Suggestion

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:

video2.mp4

tailwind v4 + v3 coexisting

Known issues when combining the Tailwind v4 version of this library with an app that uses v3

  • Borders on buttons are missing - workaround: re-add the tailwind v3 version of borders: Styles="border border-{color}-{shade}"

Migrate Mk -> Pure

Migrate the remaining components from the Mk suffix to the new Pure suffix.

  • Rename files to match the new convention
  • Move files up a level out of the nested /components folder
  • Fix references in Docs project
  • Rename Docs project Makani.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.

Figure out website/doc strategy

Website is currently private, we also moved docs to the website for ease of use for now.

Consider-

  • Moving the actual pages back to this repo as an RCL, then reference in the new project
  • Open Sourcing the Website (no secrets should be checked in, but we need to take an additional step to confirm or just remove history).

Proposal: Ripple effect

A ripple effect for interactable components:

video2.mp4

It should originate from the pointer:

video3.mp4

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):

video4.mp4

And it should be able to ripple multiple times at once:

video4.mp4

Add PureRadio

See NewWasmSiteFlyout in the CMS for implementation guidance.

image

Applying a text transformation in the `Styles` parameter causes unrelated text- styles to be dropped

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

normal usage:
image

using text-sm:
image

Additional context

  • This likely stems from the StylePrioritizer and KeyExtractor.ToCssKey(...)
  • Need to confirm if this affects other style keys

Increase test coverage

We are utilizing Playwright for integration testing of the components on the website.

In Progress

  • Buttons

Pending

  • Alerts
  • Badges
  • Banners
  • Cards
  • Dialog
  • Dropdowns
  • Inputs
  • Radio Buttons
  • Tabs

Complete

Issue layering multiple tailwind CSS files

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:

  1. Add PB + pureblazor.css
  2. Add your own Tailwind config + import the css
  3. Depending on the order of import, the issues change. e.g. primary filled buttons do not have the filled background.

Expected behavior
Determine the best way to merge or layer multiple tailwind css files (e.g. importing into the layer)

Why not to use exisitng library ?

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.