From 71c1388b7bc012e9eec41f89f67dea90d26f9e3a Mon Sep 17 00:00:00 2001 From: Levi Date: Thu, 25 Feb 2021 13:06:04 -0500 Subject: [PATCH 1/2] Updated package version to 0.2.13 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c82c727..cc1e252 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rivet-collapsible", - "version": "0.2.12", + "version": "0.2.13", "description": "An expand-and-collapse widget for Rivet", "repository": { "type": "git", From 006df609dc26926a915a2f0b2321dc8f277f0be5 Mon Sep 17 00:00:00 2001 From: Levi Date: Thu, 25 Feb 2021 13:06:37 -0500 Subject: [PATCH 2/2] Built dist folder for 0.2.13 --- dist/css/rivet-collapsible.css | 4 +++- dist/css/rivet-collapsible.min.css | 4 ++-- dist/js/rivet-collapsible.js | 2 +- dist/js/rivet-collapsible.min.js | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/css/rivet-collapsible.css b/dist/css/rivet-collapsible.css index 15bfd89..d0d5127 100644 --- a/dist/css/rivet-collapsible.css +++ b/dist/css/rivet-collapsible.css @@ -3,7 +3,7 @@ * Copyright (C) 2018 The Trustees of Indiana University * SPDX-License-Identifier: BSD-3-Clause - * rivet-collapsible - @version 0.2.11 + * rivet-collapsible - @version 0.2.13 */ .rvt-collapsible__title { @@ -36,6 +36,8 @@ .rvt-collapsible__title button svg { margin-right: 0.5rem; + -ms-flex-negative: 0; + flex-shrink: 0; } .rvt-collapsible__title button[aria-expanded="true"] svg { diff --git a/dist/css/rivet-collapsible.min.css b/dist/css/rivet-collapsible.min.css index 1d175f6..1e6ddf4 100644 --- a/dist/css/rivet-collapsible.min.css +++ b/dist/css/rivet-collapsible.min.css @@ -3,7 +3,7 @@ * Copyright (C) 2018 The Trustees of Indiana University * SPDX-License-Identifier: BSD-3-Clause - * rivet-collapsible - @version 0.2.11 + * rivet-collapsible - @version 0.2.13 */ -.rvt-collapsible__title{font-size:1rem}.rvt-collapsible__title button{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;border:none;width:100%;padding:0}.rvt-collapsible__title button:focus{outline:none;box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #006298}.rvt-collapsible__title button:hover{background-color:#eee}.rvt-collapsible__title button svg{margin-right:.5rem}.rvt-collapsible__title button[aria-expanded=true] svg{transform:rotate(90deg)}.rvt-collapsible__content[aria-hidden=true]{display:none}.rvt-collapsible--panel{border:1px solid #ddd;border-radius:.25rem}.rvt-collapsible--panel .rvt-collapsible__title{background-color:#f7f7f7;border-radius:.25rem}.rvt-collapsible--panel .rvt-collapsible__title button{border-radius:.25rem;padding:.75rem}.rvt-collapsible--panel .rvt-collapsible__title button:hover{background-color:#eee}.rvt-collapsible--panel .rvt-collapsible__title button[aria-expanded=true]{border-bottom-right-radius:0;border-bottom-left-radius:0}.rvt-collapsible--panel .rvt-collapsible__content{padding:1rem;border-top:1px solid #ddd}.rvt-collapsible-accordion .rvt-collapsible:not(:first-child){margin-top:1rem} \ No newline at end of file +.rvt-collapsible__title{font-size:1rem}.rvt-collapsible__title button{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;border:none;width:100%;padding:0}.rvt-collapsible__title button:focus{outline:none;box-shadow:0 0 0 .125rem #fff,0 0 0 .25rem #006298}.rvt-collapsible__title button:hover{background-color:#eee}.rvt-collapsible__title button svg{margin-right:.5rem;-ms-flex-negative:0;flex-shrink:0}.rvt-collapsible__title button[aria-expanded=true] svg{transform:rotate(90deg)}.rvt-collapsible__content[aria-hidden=true]{display:none}.rvt-collapsible--panel{border:1px solid #ddd;border-radius:.25rem}.rvt-collapsible--panel .rvt-collapsible__title{background-color:#f7f7f7;border-radius:.25rem}.rvt-collapsible--panel .rvt-collapsible__title button{border-radius:.25rem;padding:.75rem}.rvt-collapsible--panel .rvt-collapsible__title button:hover{background-color:#eee}.rvt-collapsible--panel .rvt-collapsible__title button[aria-expanded=true]{border-bottom-right-radius:0;border-bottom-left-radius:0}.rvt-collapsible--panel .rvt-collapsible__content{padding:1rem;border-top:1px solid #ddd}.rvt-collapsible-accordion .rvt-collapsible:not(:first-child){margin-top:1rem} \ No newline at end of file diff --git a/dist/js/rivet-collapsible.js b/dist/js/rivet-collapsible.js index 55f1196..c4c0224 100644 --- a/dist/js/rivet-collapsible.js +++ b/dist/js/rivet-collapsible.js @@ -3,7 +3,7 @@ * Copyright (C) 2018 The Trustees of Indiana University * SPDX-License-Identifier: BSD-3-Clause - * rivet-collapsible - @version 0.2.11 + * rivet-collapsible - @version 0.2.13 */ /** diff --git a/dist/js/rivet-collapsible.min.js b/dist/js/rivet-collapsible.min.js index c50d81d..7fc2e58 100644 --- a/dist/js/rivet-collapsible.min.js +++ b/dist/js/rivet-collapsible.min.js @@ -3,7 +3,7 @@ * Copyright (C) 2018 The Trustees of Indiana University * SPDX-License-Identifier: BSD-3-Clause - * rivet-collapsible - @version 0.2.11 + * rivet-collapsible - @version 0.2.13 */ !function(e,t){"function"==typeof define&&define.amd?define([],function(){return t(e)}):"object"==typeof exports?module.exports=t(e):e.Collapsible=t(e)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,function(e){"use strict";var d="data-collapsible",i="There is no element with a corresponding id attribute to toggle.",u=38,c=40,o=function(e,t){var n=new CustomEvent(t,{bubbles:!0,detail:{name:function(){return e.getAttribute(d)}}});e.dispatchEvent(n)},n=function(e,t){e.setAttribute("aria-expanded","true");var n=document.getElementById(e.getAttribute(d));if(!n)throw new Error(i);n.setAttribute("aria-hidden","false"),o(e,"collapsibleOpen"),t&&"function"==typeof t&&t()},r=function(e,t){e.setAttribute("aria-expanded","false");var n=document.getElementById(e.getAttribute(d));if(!n)throw new Error(i);e.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true"),o(e,"collapsibleClose"),t&&"function"==typeof t&&t()},t=function(e){var t=e.target.closest("["+d+"]");t&&("false"===t.getAttribute("aria-expanded")?n(t):r(t))},a=function(e){if(e.keyCode===u||e.keyCode===c){var t=e.target.closest("[data-accordion]");if(!t)return;var n=t.querySelectorAll("["+d+"]");n.length<2&&console.warn('An accordions should contain *at least two* accordion toggles with the "data-collapsible" attribute');var i=Array.prototype.slice.call(n),o=document.activeElement,r=i.indexOf(o)+1,a=i.indexOf(o)-1;switch(e.keyCode){case u:if(!e.target.hasAttribute(d)||void 0===i[a])return;i[a].focus();break;case c:if(!e.target.hasAttribute(d)||void 0===i[r])return;i[r].focus()}}},l=function(){document.removeEventListener("click",t,!1),document.removeEventListener("keyup",a,!1)};return{init:function(){l(),document.addEventListener("click",t,!1),document.addEventListener("keyup",a,!1)},open:n,close:r,destroy:l}}); \ No newline at end of file