Skip to content

PressTarget#129

Open
maxwell-jordan wants to merge 7 commits into
mainfrom
feature/press-target
Open

PressTarget#129
maxwell-jordan wants to merge 7 commits into
mainfrom
feature/press-target

Conversation

@maxwell-jordan

Copy link
Copy Markdown
Contributor

Adds ui/press-target.mod, a basic component wrapper to add a press composer and limited press related functionality to a component

@maxwell-jordan maxwell-jordan requested a review from marchant June 16, 2026 00:59
Comment thread ui/press-target.mod/press-target.js Outdated
Comment thread ui/press-target.mod/press-target.js Outdated
Comment thread ui/press-target.mod/press-target.js Outdated
Comment thread ui/press-target.mod/press-target.js Outdated
Comment thread ui/action-target.mod/action-target.js
Comment thread ui/action-target.mod/action-target.js
Comment thread ui/button.mod/button.js Outdated
Comment thread ui/button.mod/button.js Outdated
Comment thread ui/button.mod/button.js Outdated
Comment thread ui/button.mod/button.js Outdated
Comment thread ui/button.mod/button.js Outdated
Comment thread ui/button.mod/button.js Outdated
@maxwell-jordan maxwell-jordan requested a review from marchant July 8, 2026 01:07

@marchant marchant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More work needed to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split between the relevant's specs if it's a bit of both.

describe("disabled property", function () {
var anActionTarget;
beforeEach(function () {
anActionTarget = new Button();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be Button anymore if it stays here, or it should move back to button's spec.

You need to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split if it's a bit of both.

describe("active target", function () {
var anActionTarget, anElement;
beforeEach(function () {
anActionTarget = new Button();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be Button anymore if it stays here, or it should move back to button's spec.

You need to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split if it's a bit of both.


describe("converter", function () {
beforeEach(function () {
anActionTarget = new Button();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be Button anymore if it stays here, or it should move back to button's spec.

You need to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split if it's a bit of both.

anElement = MockDOM.element();
});
it("should set tabindex if needed", function () {
anElement.tagName = "DIV";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be Button anymore if it stays here, or it should move back to button's spec.

You need to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split if it's a bit of both.

describe("events", function () {
var anActionTarget, anElement, listener;
beforeEach(function () {
anActionTarget = new Button();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be Button anymore if it stays here, or it should move back to button's spec.

You need to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split if it's a bit of both.

});
describe("objectDescriptor", function () {
it("can be created", function (done) {
var objectDescriptorPromise = Button.objectDescriptor;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be Button anymore if it stays here, or it should move back to button's spec.

You need to look at what the spec does to assess wether it's assessing behavior now in ActionTarget, or still in Button, and eventually split if it's a bit of both.

@maxwell-jordan maxwell-jordan requested a review from marchant July 9, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants