Commit Graph

122 Commits

Author SHA1 Message Date
Tessa Kelly
eb76953022 Use ClickableText.V4 in styleguide examples 2020-01-31 10:22:36 -08:00
Tessa Kelly
1dd1bebdb3 Use css helper rather than Button.custom 2020-01-31 10:15:57 -08:00
Tessa Kelly
31d70b4f90 Fixes style overwritten unintentionally by elm-css 2020-01-29 09:20:21 -08:00
Ben Dansby
e3a67a706a import v10 button for modal example 2020-01-28 17:10:20 -08:00
Brian Hicks
0764e4527f add some more cupcake ipsum 2019-11-18 12:44:25 -06:00
Michael Glass
32de6d0a9b
revert optional config because there's only one config option 2019-10-23 18:33:27 +02:00
Michael Glass
091fc357d6
move autoFocusOnLastElement into onlyFocusableElementView 2019-10-23 18:26:59 +02:00
Michael Glass
cc35555ac5
fix focus usage in example modal 2019-10-23 18:10:05 +02:00
Michael Glass
caeb3d06f9
pass through view funcs as callbacks to avoid need to pass config to multiple places 2019-10-23 17:21:20 +02:00
Michael Glass
800b9d1910
only accept one focusable 2019-10-23 17:02:52 +02:00
Michael Glass
eed29adcf2
don't thread visibleTitle through focusable callbacks 2019-10-23 16:59:30 +02:00
Michael Glass
11ca265f5b
modal options are optional config 2019-10-23 13:56:31 +02:00
Michael Glass
31dac5b6d1
make visibleTitle an optional config 2019-10-23 13:55:21 +02:00
Ju Liu
3642b80fc6 Remove viewFooterlessContent in favour of viewContent 2019-10-14 17:40:56 +01:00
Ju Liu
a087374cf4 Change shape of Modal.viewContent 2019-10-14 17:22:16 +01:00
Tessa Kelly
351a9e058b Final styling tweaks 2019-10-11 10:24:21 -07:00
Tessa Kelly
ba857536ef Fix background colors added for debugging 2019-10-10 16:33:04 -07:00
Tessa Kelly
74c0efba08 Fix spacing between continue and close buttons 2019-10-10 16:29:46 -07:00
Tessa Kelly
fec7bf64c6 Fix the top bar styles 2019-10-10 16:25:23 -07:00
Tessa Kelly
5179bff1fc Fix the upper corners depending on whether the title is showing or not 2019-10-09 14:33:29 -07:00
Tessa Kelly
4d741e9769 Fix the height 2019-10-09 13:53:13 -07:00
Tessa Kelly
5c46167a10 Improve footerless styles 2019-10-09 13:19:02 -07:00
Tessa Kelly
60f4971fbf fixup! Use V8 in examples 2019-10-09 13:06:31 -07:00
Tessa Kelly
f032e6a234 Make title visibility an attribute 2019-10-09 12:20:17 -07:00
Tessa Kelly
4f2c5ee905 Allow customizable modal height 2019-10-09 07:11:45 -07:00
Tessa Kelly
c3afbf89da Use V8 in examples 2019-10-09 07:03:07 -07:00
Tessa Kelly
d4f5f5f4b6 Oops fix button color 2019-08-16 15:57:36 -07:00
Tessa Kelly
0eb64eb7ee Display variable-length content 2019-08-16 15:51:00 -07:00
Tessa Kelly
afd8ebc6eb Pull the settings out of the modal 2019-08-16 15:47:21 -07:00
Tessa Kelly
45cfc71f0b Fix the focus behavior 2019-08-16 15:40:34 -07:00
Tessa Kelly
94384ddbce get the new version of the code using the new modal api 2019-08-16 15:37:17 -07:00
Tessa Kelly
f87a9de93a use autofocus attribute
sooooooooo this won't work if the autofocus is on the same element as the last focusalble elemnt, cause the ids get overwritten... back to the drawing board I suppose
2019-08-16 12:04:59 -07:00
Tessa Kelly
89e5f58ace Use clickable text for secondary button 2019-08-16 11:17:54 -07:00
Tessa Kelly
27af311778 enlargen the styleguide buttons 2019-08-16 11:12:39 -07:00
Tessa Kelly
43c5f27a1a Wrap the modal in a new stacking context
in the monolith, there were pages where tooltip triggers were showing through the modal backdrop
2019-08-16 10:09:30 -07:00
Tessa Kelly
a462e9ff04 Write out the focus behavior explicitly
the focus still won't handle correctly until we update the checkboxes to take arbitrary attributes, unfortunately
2019-07-25 22:26:57 -07:00
Tessa Kelly
1fcca16f12 Update modal to take advantage of the new button API 2019-07-25 22:14:26 -07:00
Tessa Kelly
0c6e191a1d cp Modal v5 to v6 2019-07-25 21:46:20 -07:00
Tessa Kelly
b1d44c054f 🎨 avoid passing along a function with lots of arguments 2019-06-18 09:00:01 -07:00
Tessa Kelly
3ba03bbdef Use a type alias to describe the focusable elements 2019-06-18 08:54:20 -07:00
Tessa Kelly
4fa137f642 Fix the states for main and secondary buttons 2019-06-12 11:27:21 -07:00
Tessa Kelly
699b2789de Use newest modal version 2019-06-12 11:12:37 -07:00
Tessa Kelly
ae00ab4841 Wire in setting for closing on escape or backdrop click 2019-06-11 12:11:59 -07:00
Tessa Kelly
83c06883f2 Adds dismiss on click setting 2019-06-11 12:11:59 -07:00
Tessa Kelly
576cc1f99a Upgrade to newest modal version 2019-06-11 12:11:59 -07:00
Tessa Kelly
daa52b80bc Adds secondary button 2019-06-11 12:11:59 -07:00
Tessa Kelly
7792e6fb4b Simplify the content view
Note that this is not perfect. if all the items in the modal are de-selected, then the trap doesn't work. pretty much just having the X doesn't work right now
2019-06-11 12:11:59 -07:00
Tessa Kelly
349d9132d3 Fix the focus trap behavior 2019-06-11 12:11:59 -07:00
Tessa Kelly
ffcee01e30 Move the settings into the modal 2019-06-11 12:11:59 -07:00
Tessa Kelly
89f38b32e4 Generalize the main button content 2019-06-11 12:11:59 -07:00
Tessa Kelly
88490ebdd2 Show the danger button 2019-06-11 12:11:59 -07:00
Tessa Kelly
ac6be5a103 Fix the content styles 2019-06-11 12:11:59 -07:00
Tessa Kelly
ad8be4964f 🎨 make launch button easier to work with 2019-06-11 12:11:59 -07:00
Tessa Kelly
2858098121 Adds primaryButton view 2019-06-11 12:11:59 -07:00
Tessa Kelly
a006d2836b Configure when the x shows 2019-06-11 12:11:59 -07:00
Tessa Kelly
a049f6a167 Adds setting for the visible title 2019-06-11 12:11:59 -07:00
Tessa Kelly
d079e73395 Adds separate viewTitle helper 2019-06-11 12:11:59 -07:00
Tessa Kelly
52258fcd3e Adds launch button helper 2019-06-11 12:11:59 -07:00
Tessa Kelly
a77eebd0c2 Basic working example of accessible button-free modules 2019-06-11 12:11:59 -07:00
Tessa Kelly
f83456aa2a Remove dependence on the assets 2019-06-11 12:11:59 -07:00
Tessa Kelly
1ec26224fd Change version to v5 2019-06-11 12:11:59 -07:00
Tessa
c1f9f24e7a
Merge branch 'master' into tessa/small-styelguide-updates 2019-05-06 16:41:07 -07:00
Tessa Kelly
2bd5ccb61f filename -> name 2019-05-03 09:56:43 -07:00
Tessa Kelly
8e4bf3c412 Standardize the module example naming 2019-05-03 09:54:34 -07:00
Aaron VonderHaar
38e5ea4a43 Add “WithOnlyX” dismissibility option to Modal.V4 2019-05-02 16:44:31 -07:00
Aaron VonderHaar
a3b3c00d1e Create Modal.V4 2019-05-02 16:44:31 -07:00
Luke Westby
c1ff19f0d0
Add Html.Styled versions for everything (#139)
* make html.styled versions of remaining widgets

* upgrade all the examples

* change license name
2018-10-23 09:55:30 -07:00
Michael Glass
70d214957c
run elm-format 2018-09-26 16:02:28 +02:00
Brooke
d3d54439d4 creates modal V3 2018-09-07 09:23:16 -07:00
Brooke
09555104a3 fix no close button conundrum 2018-09-06 08:13:16 -10:00
Brooke
24368e17d4 use same styles from monolith (more recent) 2018-08-29 12:38:24 -07:00
Brooke
56ee341a7e add modal module example 2018-08-29 12:09:22 -07:00