massgov / mayflower-patternlab Goto Github PK
View Code? Open in Web Editor NEWDesign system for the Commonwealth of Massachusetts.
Home Page: http://mayflower.digital.mass.gov/
License: GNU General Public License v2.0
Design system for the Commonwealth of Massachusetts.
Home Page: http://mayflower.digital.mass.gov/
License: GNU General Public License v2.0
Hoping to start a conversation about decoupling drupal from the pattern lab style guide. I see two opportunities here:
I think the coupling will come in on the drupal theme's end, using its twig templates as a Presenter (as in MVP architecture) routing the drupal data model through to the pattern lab view twig template via embeds/includes/etc.
What do people think?
Also - FYI - here are some initiatives that we've been following in the drupal / components community:
http://mayflower.digital.mass.gov/?p=all
http://mayflower.digital.mass.gov/?p=viewall-organisms-all
http://mayflower.digital.mass.gov/?p=viewall-templates-all
...
seems like a recent issue (I have only noticed it as of yesterday)
Jira ticket: https://jira.state.ma.us/browse/DP-4432
yesterday, I was trying to troubleshoot a pr but was having a problem updating the pattern locally. Here are my steps:
git pull dev
git checkout feature-branch
cd styleguide
gulp
<h2>Hello</h2>
- saveThis failed for me several times. At first I was concerned that gulp wasn't listening to file changes but we confirmed that it was. Also, there was a possibility I was editing the wrong file but I grep'd the _patterns directory and there were no results suggesting that. Finally, I got @isaacchansky to test locally, and when he did the above steps, PL worked as expected.
Sets the value of $ locally in the function scope, that way we use $
jQuery(function($) {
......
//# sourceMappingURL=index-generated.js.map
});
So we can get rid of TypeErrors and use your JS directly. There may be a better/different way to do this with your compression/aggregation tools. Please investigate and implement.
Please remove hardcoded paths. Add a JS global "directory" setting variable for paths. In this instance, use it for '/assets/'.
For example:
richText.js - fetch('/assets/images/svg-sprite/external-link.svg'
$.ajax({ url : '/assets/js/templates/' + name + '.html',
This should be in a separate file, maybe called 'settings.js' and not aggregated in.
Something like this
env.js
var themePath = '/assets';
fetch(themePath + "/images/svg-sprite/external-link.svg"
index-generated.js
and vendor-generated.js
Let's make Mayflower more consistent with our other Mass.gov projects by not versioning vendor/
. We'll want to check circle, phing, and bash scripts to see if / when we should be running composer install
prior to builds.
This will ease developer / reviewer processes by removing diff noise and also make dependency updates more efficient, as mentioned in #519
This "body" field needs to account for:
description text
and any links added
So if we have just a description, this is styled one way
So if we have a description and a few links, this is styled the same but includes the links.
Also with links, currently under "log in to..." shouldn't this account for two links?
Like this (in the aside.sidebar):
<div class="ma__contact-group">.....</div>
<div class="ma__contact-group">.....</div>
<div class="ma__contact-group ma__contact-us__extra js-accordion-content">.....</div>
<div class="ma__contact-group">.....</div>
<div class="ma__contact-group">.....</div>
-- and I need molecules/contact-group.twig to support a textarea address. In this instance we are using a simple textarea for the address.
251 Causeway Street
Suite 900
Boston, MA 02114-2104
Version 5.12.2
Issue: In the readme file of the @atoms/input-text --> missing the prop 'hiddenLabel' in the json structure.
As you can see here, for search input, I need to be able to specify 'name' : 'q'.
'name': 'q',
'inputText': {
'labelText': 'Search',
'required': false,
'id': 'GUID138490237',
'name': 'q',
'placeholder': 'Search...'
}
Does that make sense?
{%
set searchBanner = {
'bgWide': search800x400_image_url,
'bgNarrow': file_url(content.field_image['#items'].entity.uri.value),
'imageName': content.field_name|field_value,
'imageAuthor': content.field_caption|field_value,
'form': {
'path': '@molecules/search-banner-form.twig',
'content': {
'action': '/search',
'buttonText': 'Search',
'inputText': {
'labelText': 'Search',
'required': false,
'id': 'GUID138490237',
'placeholder': 'Search...'
}
}
},
'title': content.field_title|field_value ? content.field_title|field_value : title,
'intro': content.field_description|field_value ? content.field_description|field_value : intro,
'helpfulLinks': {
'columns': 'true',
'compHeading': {
'title': content.field_link['#title'],
'sub': 'true',
'color': 'yellow',
'centered': 'true'
},
'items': items
}
}
%}
{% include '@organisms/by-author/search-banner.twig' %}
The "Minor Button" atom doesn't follow either variable names or internal/external styling patterns used nearly everywhere else.
I'd ask that this atom be refactored to use the variables type
(for internal/external), href
(instead of link) and text
should remain unchanged.
I'm asking b/c this is different from our bgWide/bgNarrow approach.
A table was added to the page via the Rich text editor and it was rendered unstyled.
https://pilot.mass.gov/guides/test-guide-page-lgm
Issue resolves around a type in the css targeting .rich-text table instead of .ma__rich-text table
@avrilpearl needs to update this
@molecules/illustrated-link
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.