ucsc / ucsc-content-blocks Goto Github PK
View Code? Open in Web Editor NEWA collection of WordPress blocks for UC Santa Cruz.
License: GNU General Public License v3.0
A collection of WordPress blocks for UC Santa Cruz.
License: GNU General Public License v3.0
The Details wrapper should limit the blocks placed within it to only the Details block. A constant has been set up to take care of that but it's no doing its job.This should be fixed.
The paragraph block is inheriting a 1em
margin from the user agent styleshet via themargin-block-start
declaration.
This messes up the spacing on the <summary><p>
elements.
Dashicons need to be enqueued via the plugin for them to show up on the front-end when a user is logged out.
While the Expand/Collapse All button on the details wrapper is built by the block, it is returned via raw html, not using block attributes. It needs to be built properly suing block components and attributes defined in block.json
We converted the pseudo-classes on the style variations from :before
to :marker
; however, :marker
does not allow absolute positioning (that we have found).
We need to revert back to the :before
pseudo-class to re-enable absolute positioning.
The javascript file that provides the Expand/Collapse All button functionality is registered and enqueued globally via the ucsc-content-blocks.php
file when the plugin is activated.
According to the WordPress Block Editor Handbook, Frontend Enqueueing is possible via the block.json
file, which would only enqueue the JavaScript when the block is used.
Follows the browser convention of using ::marker
for the details element summary.
After adding the details block, the initial click into the field opens/closes the block prior to being able to edit the field. The edit.js
file currently employs a "listener" on the space bar. I believe we need one for Click, too.
Current listener as example:
const keyUpListener = ( e ) => { if ( e.keyCode === SPACE ) { e.preventDefault(); } };
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.