Commit Graph

1239 Commits

Author SHA1 Message Date
James Gary
a4d3448b47 Add skip icon 2018-04-04 09:34:42 -07:00
Jasper Woudenberg
1d1085ce68
Merge pull request #32 from NoRedInk/butteroala__add-icons
Butteroala  add icons
2018-04-03 08:52:04 +02:00
Tessa Kelly
cb6f0fcfc3 MINOR version bump 2018-04-02 17:20:02 -07:00
Tessa Kelly
eb3d9f038c Adds sumitting, rating, and revising helpers 2018-04-02 17:17:42 -07:00
Tessa Kelly
1d28d9c617 :bowtie: move assignment type icons to the assignment type section 2018-04-02 17:10:32 -07:00
Hardy Jones
b537f13f7e
Merge pull request #31 from NoRedInk/expose-segmented-control-version-five
Bump version to 4.4.0
2018-03-30 15:13:41 -07:00
Hardy Jones
7f7d2db7c6
Bump version to 4.4.0
Also expose `Nri.Ui.SegmentedControl.V5`.
2018-03-30 15:05:35 -07:00
Hardy Jones
57a01bb8bf
Merge pull request #30 from NoRedInk/more-segmented-control-styling-changes
More segmented control styling changes
2018-03-30 15:01:21 -07:00
Hardy Jones
e5a56486d7
Allow segmented control to expand to parent's width
We want to allow the control to take up the full width of the parent.
This will most likely break something if you try to upgrade directly.
Should be fixable by putting the control in an element with
the appropriate width.
2018-03-30 09:10:33 -07:00
Hardy Jones
d4d6991643
Style the segmented control tabs directly
tl;dr; Use a class for each variant instead of overriding one variant.

Before, we relied on CSS specificity in an unclear way.
The `Focused` class was applying properly because it was ordered later
than the `Tab` class in the stylesheet.
The ordering that is important is the ordering in `styles` value.
Since `elm-css` generates the stylesheet in the order of the lists,
the `Focused` rule would be generated after the `Tab` rule.
Meaning the `Focused` rule would take precedence over the `Tab` rule
if an element had both classes as it was defined later in the stylesheet.

There are some concerns with this approach:
1. It's not readily apparent that the ordering in `styles` is important.
    It is pretty easy to change the ordering of the list
    and have it break the styling.
2. We rely on `elm-css` to generate the stylesheet in a specific order.
    If it changes the order of rules it generates,
    we're almost surely going to break the styling.
3. Altering styles for tabs that are not focused is even less intuitive.
    Since the specificity is the same,
    you might not know why a given rule applies (or doesn't apply).

Rather, we can eschew the specificity/precedence issues
by applying a different class to each tab.
The stuff that is the same can stay on the `Tab` class,
and the stuff that differs can be on different classes.

We are now able to set the background color for `Unfocused` tabs.
We were relying on the control being placed atop a white background.
When we moved to using the control atop a non-whitebackground,
it showed that the `Unfocused` tabs had a transparent backround.
All of our designs show `Unfocused` tabs with a white backround.

See https://github.com/NoRedInk/noredink-ui/pull/14 for more information.
2018-03-30 09:10:33 -07:00
Hardy Jones
55ce63dbfc
Fix filename
The style guide is currently for V4.
2018-03-30 09:10:33 -07:00
Jasper Woudenberg
1e0578d578
Merge pull request #29 from NoRedInk/add-versioning-policy
Add a section on our versioning policy
2018-03-30 17:14:11 +02:00
Jasper Woudenberg
704159ffb4
Merge branch 'master' into add-versioning-policy 2018-03-30 17:11:56 +02:00
Jasper Woudenberg
1e2c003938 Add a section on our versioning policy
This puts in the README what has so far been an informal policy, based
on Slack and Paper dicussions.

Anyone should feel free to change this!
2018-03-30 16:54:02 +02:00
Hardy Jones
150ad80284
Merge pull request #28 from NoRedInk/disallow-major-bumps
disallow major changes in Travis
2018-03-30 07:32:38 -07:00
Brian Hicks
87ea451dd5
Merge branch 'master' into disallow-major-bumps 2018-03-30 09:14:39 -05:00
Stoeffel
d6fa61cf02 4.3.0 2018-03-30 16:10:49 +02:00
Brian Hicks
6cd23a3e06
disallow major changes in Travis
A repo administrator can still override this check if we really need to
publish a major change, but let's catch the common case.
2018-03-30 09:10:39 -05:00
Christoph Hermann
21b69d4a3e
Merge pull request #27 from NoRedInk/rename-to-class
Rename to class
2018-03-30 16:10:03 +02:00
Stoeffel
4fcf54727e fix namespace of v4 2018-03-30 16:05:21 +02:00
Stoeffel
b7dbbfffd3 rename to CssClass to avoid bumping to 5.0.0 2018-03-30 16:05:03 +02:00
Christoph Hermann
2f6148fd6c
Merge pull request #26 from NoRedInk/expose-css-classes-segmented
expose css classes
2018-03-30 16:01:40 +02:00
Stoeffel
6559a32023 expose css classes 2018-03-30 15:57:40 +02:00
Stoeffel
3937beeced 4.2.0
Comparing NoRedInk/noredink-ui 4.1.0 to 4.2.0
This is a MINOR change.

------ Changes to module Nri.Ui.Icon.V1 - MINOR ------

    Added:
        type CssClasses

------ Changes to module Nri.Ui.Icon.V2 - MINOR ------

    Added:
        type CssClasses
2018-03-30 13:22:41 +02:00
Christoph Hermann
e0fc0b3d71
Merge pull request #25 from NoRedInk/expose-css-classes
exposes CssClasses type
2018-03-30 13:19:52 +02:00
Stoeffel
ac49bb373e exposes CssClasses type 2018-03-30 13:17:34 +02:00
Jasper Woudenberg
65fdf581e6 v4.1.0 2018-03-30 08:10:54 +02:00
Jasper Woudenberg
b0711d9024
Merge pull request #23 from NoRedInk/separate-icon-functions
Separate icon functions
2018-03-30 08:03:32 +02:00
Jasper Woudenberg
0b62490bcf
Merge branch 'master' into separate-icon-functions 2018-03-30 08:00:09 +02:00
Brooke
8b860ccb62
Merge pull request #18 from NoRedInk/accessibility-compatible-styled
make Nri.Ui.styled compatible with Accessibility.Styled
2018-03-29 13:12:16 -07:00
Brooke
2ddd4ced9b bump elm package to 4.0.0 - make styled Accessibility accessbile 2018-03-29 13:07:01 -07:00
Brooke
bd28ec2420 make Nri.Ui.styled compatible with Accessibility.Styled 2018-03-29 13:06:45 -07:00
Jasper Woudenberg
1c5bd47bec
Merge branch 'master' into separate-icon-functions 2018-03-29 17:01:41 +02:00
Jasper Woudenberg
6e041d9364 Styleguide uses latest Icon / SegmentedControl 2018-03-29 12:58:41 +02:00
Jasper Woudenberg
4aa4217ce5
Merge pull request #24 from NoRedInk/version-bump
Bump 3.6.0
2018-03-29 11:01:13 +02:00
Jasper Woudenberg
0c02d6e540 Bump 3.6.0 2018-03-29 10:44:56 +02:00
Jasper Woudenberg
6f6f17cc00 New SegmentedControl that uses latest Icon
This change allows SegmentedControl to no longer needs to take a record
with all icon assets. It's the construction of the `IconType` that now
requires an asset, which one depends on the icon being constructed.
2018-03-29 10:16:27 +02:00
Jasper Woudenberg
09de05c06e New Icon module with a function per icon
The purpose of this change is to allow each icon to list its asset
dependencies separately. This allows services consuming the icon library
to only provide those icons that are actually used.
2018-03-29 10:16:02 +02:00
Jasper Woudenberg
ad8ee2bb64 Stop ignoring Icon modules
Not sure what this .gitignore entry was for though. Happy to change this
commit for a narrower .gitignore rule that whitelists our Icon modules
but keeps ignoring whatever files it was ignoring before.
2018-03-29 09:57:20 +02:00
Jasper Woudenberg
a00c34a6f4
Merge pull request #22 from NoRedInk/extract-updated-segmented-control
Extract updated segmented control
2018-03-29 09:30:49 +02:00
Hardy Jones
fb2dbbfb47
Extract updated segmented control from the monolith
This version is like `Nri.Ui.SegmentedControl.V1` with the icon changes.
It has the fix for `box-sizing`.

All the other caveats from `Nri.Ui.SegmentedControl.V1`
(if there were any) apply here as well.
2018-03-28 18:20:58 -07:00
Hardy Jones
0a75e8229b
Extract Nri.Icon from the monolith
The recommendation is to break the styles API rather than the view API
when moving something out of the monolith into this repo.

`Nri.Icon` is not really setup for that sort of breakage.
If we would prefer to have the styles break rather than the view,
that will take more work.
Work that can be done independent of the extraction.

The transition in the monolith ought to look something like:

```elm
module Nri.Icon exposing (..)

import Html exposing (Html)
import Nri.SvgSprite
import Nri.Ui.Icon.V1 exposing (Assets, IconType)

icon : { alt : String, icon : IconType } -> Html msg
icon config =
  Nri.Ui.Icon.V1.icon assets

assets : Assets {}
assets =
  { activity = Nri.SvgSprite.activity
  , arrowDown = Nri.SvgSprite.arrowDown
  , attention_svg = Nri.Assets.attention_svg
  ...
  }
```

So hopefully, the change is still very small on the monolith side.

There's maybe a bigger concern than which API breaks.
`Nri.Icon` has some behavior for a11y.
We could definitely change the internals over during the extraction.
But, since all of these changes are value-level changes,
it's very likely that we'll break something in the process.
That's a bigger concern because instead of affecting
the handful of Engineers working at NRI,
we would be affecting the millions of people using the site.

We shouldn't fear making those kinds of changes.
However, we should make them when we can give them the appropriate
attention they deserve.
Not when one person is trying to move as fast as possible to avoid
race conditions of moving modules between repos.
2018-03-28 18:20:16 -07:00
Hardy Jones
7a5da8a78c
Merge pull request #21 from NoRedInk/set-shell-explicitly
Set shell explicitly
2018-03-28 12:23:00 -07:00
Hardy Jones
9bab3fe852
Use /bin/sh instead
Per Brian Hicks: people customize their .bashrc/.zshrc and
sometimes they take a long time to load,
but almost no one ever customizes `/bin/sh`.
2018-03-28 12:16:59 -07:00
Hardy Jones
00d61cb76b
Set the SHELL explicitly
On macOS/OSX, the shell is `/bin/sh`.
Most of the `elm` commands don't seem to work in `/bin/sh`.

If we use `/bin/bash`, the commands seem to work.
2018-03-28 12:05:11 -07:00
Jasper Woudenberg
330cce6a72
Merge pull request #19 from NoRedInk/joneshf-patch-1
Turn off email notifications
2018-03-28 20:12:59 +02:00
Jasper Woudenberg
5f5a060dd2
Merge branch 'master' into joneshf-patch-1 2018-03-28 19:56:09 +02:00
Michael Glass
23fd05e227
Merge pull request #20 from NoRedInk/makefile-uncontroversial
add a Makefile, speed up CI
2018-03-28 13:28:48 +02:00
Brian Hicks
89ee987118
cache slightly more aggressively to avoid downloads 2018-03-27 22:28:16 -05:00
Brian Hicks
a756a0a685
try node_modules again, while always saying to remake the dep targets 2018-03-27 22:23:32 -05:00