GithubHelp home page GithubHelp logo

ampleorganics / blaze.vue Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 2.0 4.48 MB

Ample Organics Component Library

Home Page: https://blaze-vue.netlify.com

License: MIT License

HTML 0.28% Vue 56.49% JavaScript 35.53% Shell 0.09% SCSS 7.61%

blaze.vue's People

Contributors

andystu avatar boshes avatar dependabot[bot] avatar martinlaws avatar sofanisba avatar vinle173 avatar whapow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

Forkers

zainw busheikin

blaze.vue's Issues

Add new button styles

link: for making the button look like a link but with the same padding/sizing as a button.
text-only: for removing all padding, borders, etc.

Create condensed table style

For tables with less padding. Something like:

.ao-table--condensed {
  /deep/ td {
    padding: $spacer-micro !important;
  }

remove 'label' requirement from input

problem: search like inputs tend to not have a label by design, and instead use placeholder to identify what to do

solution: make the label prop no longer required

Create card section heading text style

Need a text style for a labelling sections within a card. Something like this exists in mockups already.
Should be an h3 since it is hierarchically 1 step lower than the card header.

screen shot 2018-06-08 at 1 28 40 pm

We could add this in ao-text, or create a new component called ao-heading?

Input add-ons are funky

  • putting an input add-on does some funny styling with the button alignment and input width, particularly in card header slots.
  • add-ons should emit click events (e.g. as a search button or something)
  • nice to have: ghosted icon that's right-aligned and clickable (e.g. search tool, etc)

Select Default prop sucks [important]

right now you need to pass in a default prop that sets the default,
problem is that it's not reactive so if default changes or should be re rendered based on another outside influence it does not work well

Solution:

  1. remove default prop, restructure the component to use a proxy that sets value on start using v-model ala Buefy
  2. Change default behind the scenes so that stuff can change,

either way it's likely going to be destructive on our current code base so a migration plan must be set when upgrading

Tooltips

We should add the ability to give elements an on-hover tooltip. Pretty standard in today's webapp landscape and would be incredibly helpful for our clients.

Uses:

  1. Contextualize a button or other element in a few words
  2. Contextualize a button on other element with longer help text

I don't know if we could use a singular tool to successfully satisfy both these needs, we should explore.

AC

  • Able to pass a string of text into a tooltip
  • Tooltip appears on hover after 500ms (just spitballing, we can dial this in)
  • Localization-friendly: We will need the ability to have this translated
  • Controls for which side of the element the tip appears on (top, bottom, left, right)

/deep/ is being deprecated in chrome

get a warning on current chrome (Chrome 65) that /deep/ is being deprecated,
not sure if it's the deep syntax

Possible Solution: use >>> which also is deep

edit: this may be a non issue O_O

Modal titles should be passed in as a prop

Currently we have a slot to pass in the title, which opens the door to getting creative with the DOM element in which said title is in. We should enforce an h1 or something

CI not hooked up

CI is great

tests lint errors all that jazz

note: standard yarn lint fixes the issues so figure out how to make it not automatically lint

answer isssss --no-fix

Create 'alert' style (in the bootstrap sense)

We often use 'alerts', in the bootstrap sense - ie. a contextually coloured card with text that gives the user some kind of message. It's more like a 'callout' so maybe that is a better term.

  • Should be able to be made flush with card edges, but should also be able to live within a card or outside of a card
  • Should have info, success, warning, error/danger, and subtle variations.

screen shot 2018-06-18 at 3 40 02 pm
screen shot 2018-06-18 at 3 40 14 pm
screen shot 2018-06-18 at 3 40 36 pm

Font family on certain elements are not correct

problem: certain elements font-family's are set to system-ui or other things,

solution: add a rule in the reset SCSS that sets font-family/font property to 'inherit'

known HTML elements includ : selection, option, input, textarea

comment below if you find any others

Create tfoot slot for tables

It would be useful to have a table footer that could have unique styling. Example:

screen shot 2018-06-20 at 5 36 59 pm

  • Thicker border at the top
  • will never have grey background

Grid implementation leaves room for inconsistencies

Since the parameters of the grid are being declared on each app, they are prone to being inconsistent from one to the other. Say we change the gutter width. Or the breakpoints. Now we have to go and change that in every app?

Right Pagination button width

Actual: the right pagination button acts strange when not forced up against the side of something else.

screen shot 2018-05-22 at 3 56 17 pm

Expected: constant size with the left button
like below
screen shot 2018-05-22 at 3 58 06 pm

Small button height isn't working as expected

The height of an ao-button is controlled by a min-height attribute.
Small buttons get a smaller height, but it is being set by a height attribute, so it has no effect and the height isn't actually changing.

  • Change min-height to height on the button, or
  • Change height to min-height on the small version

Inputs should be more condensed when nested in tables

Open to discussion

Currently when we put an input in a table, it takes up quite a bit of real estate with no real reason. So far the application for inputs in cells has been for Sales Orders and Purchase orders, which already have many columns so real estate is precious. For the Sales Order create view I created some styles (below) to condense the inputs, which I think is good.

(Also, the form group margin bottom is removed which I believe makes sense as well)

/deep/ .ao-table .ao-form-group {
  margin-bottom: 0 !important;
  input {
    padding: $spacer-micro !important;
    height: $input-height-sm !important;
    font-size: $font-size-sm;
  }
}

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.